diff options
author | Antoine Beaupré <anarcat@koumbit.org> | 2015-04-17 17:02:35 -0400 |
---|---|---|
committer | Antoine Beaupré <anarcat@koumbit.org> | 2015-04-17 17:02:42 -0400 |
commit | 7de608b0bf6e0a38d3bf8bcd95859409cff063de (patch) | |
tree | 97ba5db2a8b321662b18de1828affa78025f5eaa | |
parent | 559a8d65fc7a9b00a208219b7cda47749d2b4d68 (diff) | |
download | puppet-backupninja-7de608b0bf6e0a38d3bf8bcd95859409cff063de.tar.gz puppet-backupninja-7de608b0bf6e0a38d3bf8bcd95859409cff063de.tar.bz2 |
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.
-rwxr-xr-x | files/checkbackups.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/checkbackups.pl b/files/checkbackups.pl index aebd71a..af9e66e 100755 --- a/files/checkbackups.pl +++ b/files/checkbackups.pl @@ -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"; |