Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Dashboard: Running jobs widget fix
Browse files Browse the repository at this point in the history
- Adds missing list command argument jobname
- Replaces limit with last as we want the last successful backup job
  • Loading branch information
fbergkemper committed May 15, 2017
1 parent 9a6741d commit 1d78238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/Job/src/Job/Model/JobModel.php
Expand Up @@ -218,7 +218,7 @@ public function getRunningJobsStatistics(&$bsock = null) {

// LAST BACKUP SIZE
$level = $jobstats[$i]['level'];
$cmd = 'list jobs client=' . $job['client'] . ' jobstatus=T joblevel=' . $level . ' limit=1';
$cmd = 'list jobs jobname=' . $job['name'] . ' client=' . $job['client'] . ' jobstatus=T joblevel=' . $level . ' last';

$result = $bsock->send_command($cmd, 2, null);
$tmp = \Zend\Json\Json::decode($result, \Zend\Json\Json::TYPE_ARRAY);
Expand Down

0 comments on commit 1d78238

Please sign in to comment.