Skip to content

Commit

Permalink
only remove hex prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Son Roy Almerol committed Nov 4, 2024
1 parent a4f96f9 commit 195a83c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/proxy/views/d2d_backup/panels/jobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Ext.define('PBS.config.DiskBackupJobView', {
Ext.create('Proxmox.window.TaskViewer', {
upid: response.result.data,
taskDone: function(success) {
me.reload();
me.reload();
},
}).show();
},
Expand Down
2 changes: 1 addition & 1 deletion internal/store/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (storeInstance *Store) GetMostRecentTask(job *Job, since *time.Time) (*Task
}
splittedUPID[4] = fmt.Sprintf("%08X", currInVal-1)
idx := strings.LastIndex(splittedUPID[7], "-")
if idx != -1 {
if idx != -1 && len(splittedUPID[7][idx+1:]) == 8 {
splittedUPID[7] = splittedUPID[7][:idx]
}

Expand Down

0 comments on commit 195a83c

Please sign in to comment.