From 9e4566e221a1e67c9676017d417b6c3735f9923f Mon Sep 17 00:00:00 2001 From: dpavlin Date: Sun, 21 Aug 2005 14:25:46 +0000 Subject: [PATCH] print start time and duration of each backup git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/BackupPC/trunk@57 8392b6e1-25fa-0310-8288-cc32f8e212ea --- bin/BackupPC_updatedb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/BackupPC_updatedb b/bin/BackupPC_updatedb index fa17c68..b5c8f75 100755 --- a/bin/BackupPC_updatedb +++ b/bin/BackupPC_updatedb @@ -241,7 +241,11 @@ foreach my $host_key (keys %{$hosts}) { print $hosts->{$host_key}->{'host'}, "\t#$backupNum\t", $backup->{type} || '?', " ", $backup->{nFilesNew} || '?', "/", $backup->{nFiles} || '?', - " files\n"; + " files (date: ", + strftime($t_fmt,localtime($backup->{startTime})), + " dur: ", + fmt_time($backup->{endTime} - $backup->{startTime}), + ")\n"; $sth->{backups_broj}->execute($hostID, $backupNum); my ($broj) = $sth->{backups_broj}->fetchrow_array(); -- 2.20.1