]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Use default age in missing job view
authorEric Bollengier <eric@eb.homelinux.org>
Tue, 20 Jan 2009 18:13:49 +0000 (18:13 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 20 Jan 2009 18:13:49 +0000 (18:13 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8387 91ce42f0-d328-0410-95d8-f526ca767f89

gui/bweb/lib/Bweb.pm
gui/bweb/technotes-3.0

index 64d83a271262903f84d6acc3eeaab1c83ba61d4d..270328d5276f3e7a60f7c2204af51e20a54b98ce 100644 (file)
@@ -5083,10 +5083,10 @@ sub check_job
 sub display_missing_job
 {
     my ($self) = @_;
-    my $arg = $self->get_form(qw/begin end/);
+    my $arg = $self->get_form(qw/begin end age/);
 
     if (!$arg->{begin}) { # TODO: change this
-       $arg->{begin} = strftime('%F %T', localtime(time - 24*60*60 ));
+       $arg->{begin} = strftime('%F %T', localtime(time - $arg->{age}));
     }
     if (!$arg->{end}) {
        $arg->{end} = strftime('%F %T', localtime(time));
index 9fe03deabdbdbad5a3b8991eba86a251a17f18e2..0977f6692d4cbdf8c0efc6a4c3025b40f9363d41 100644 (file)
@@ -1,3 +1,5 @@
+20Jan09
+ebl  Use default age in missing job view
 19Jan09
 ebl  Work on check_bacula.pl
       - Modify warning/critical threshold