Commit 7de608b0 authored by Antoine Beaupré's avatar Antoine Beaupré

use proper variable for rdiff checks

this code is now tested and works, at least for rdiff. it is assumed that simple flags also works.
parent 559a8d65
......@@ -73,7 +73,7 @@ sub check_rdiff {
$opt_v && print STDERR "cannot open backup.log\n";
}
close(FLAG);
($state, $delta) = check_age($stats[9]);
($state, $delta) = check_age($last_bak);
print_status($host, $state, "$delta seconds old$extra_msg");
foreach my $vserver_dir (@vserver_dirs) {
$vsdir = "$dir/${subdir}$vserver_dir";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment