]> git.sur5r.net Git - bacula/bacula/commitdiff
baculum: Fix skip running jobs in graphs
authorMarcin Haba <marcin.haba@bacula.pl>
Sun, 7 Dec 2014 18:29:11 +0000 (19:29 +0100)
committerMarcin Haba <marcin.haba@bacula.pl>
Sun, 7 Dec 2014 18:29:11 +0000 (19:29 +0100)
gui/baculum/protected/JavaScript/graph.js

index 6a7a7235966f5a17082882dd589fa5969c7de54b..c8c92c765caa2bd618746a614f63d6e8ad39a5bc 100644 (file)
@@ -146,6 +146,9 @@ var GraphClass = Class.create({
                        if (jobs.hasOwnProperty('output')) {
                                var job;
                                for (var i = 0; i<jobs.output.length; i++) {
+                                       if(jobs.output[i].jobstatus == 'R' || jobs.output[i].jobstatus == 'C' || jobs.output[i].endtime == null) {
+                                               continue;
+                                       }
                                        job = new JobClass(jobs.output[i]);
                                        this.jobs.push(job);
                                }