FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 3c040a2c authored by Dr Adam Thorn's avatar Dr Adam Thorn
Browse files

Let's not worry if we haven't backed up a machine that has been offline for 3...

Let's not worry if we haven't backed up a machine that has been offline for 3 months (instead of 6 months)
parent 6b43427c
No related branches found
Tags 0.9-ch60
No related merge requests found
......@@ -3,7 +3,7 @@ Priority: optional
Section: otherosfs
Maintainer: Frank Lee <rl201@cam.ac.uk>
Architecture: all
Version: 0.9-ch59
Version: 0.9-ch60
Depends: zfs-dkms, postgresql-9.5 | postgresql-9.4 , liblockfile-simple-perl, libdbi-perl, libjson-perl, libzfs-perl-chem, libnet-openssh-perl, libdbd-pg-perl, mbuffer, rsync, nfs-kernel-server, pv, libwww-curl-perl
Description: a backup system using ZFS
Ported (well, mostly) from FreeBSD to a Sane OS.
......@@ -148,8 +148,8 @@ foreach my $hr (@{$all}) {
$backup_msg = sprintf($msg_offline_host, $backup_task_name, $time_since_online, $timediff);
}
if(($conn_color ne 'green') && $time_since_online > 6 * 30 * 86400) {
$bb->color_line('green', "offline for ~6 months\n");
if(($conn_color ne 'green') && $time_since_online > 3 * 30 * 86400) {
$bb->color_line('green', "offline for ~3 months\n");
} elsif ($timediff < $row->{'green_soft'}) {
$backup_msg .= " [&lt;".$row->{'green_soft'}."] seconds ago.\n";
$bb->color_line('green', $backup_msg);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment