X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=lib%2FBackupPC%2FCGI%2FGeneralInfo.pm;h=1418ace038a6b9fbdf48fb9d61aa65b78413236d;hp=bb71e51857708acea0120d87e3c761283f360938;hb=a7e968ce327855f2ba2624ca8517069a936c9b5b;hpb=5729095faa3ef12dc5d4f02538c3650ac81912ef diff --git a/lib/BackupPC/CGI/GeneralInfo.pm b/lib/BackupPC/CGI/GeneralInfo.pm index bb71e51..1418ace 100644 --- a/lib/BackupPC/CGI/GeneralInfo.pm +++ b/lib/BackupPC/CGI/GeneralInfo.pm @@ -54,14 +54,14 @@ sub action (my $cmd = $Jobs{$host}{cmd}) =~ s/$BinDir\///g; (my $xferPid = $Jobs{$host}{xferPid}) =~ s/,/, /g; $jobStr .= < ${HostLink($host)} - $Jobs{$host}{type} - ${UserLink(defined($Hosts->{$host}) + ${HostLink($host)} + $Jobs{$host}{type} + ${UserLink(defined($Hosts->{$host}) ? $Hosts->{$host}{user} : "")} - $startTime - $cmd - $Jobs{$host}{pid} - $xferPid + $startTime + $cmd + $Jobs{$host}{pid} + $xferPid EOF $jobStr .= "\n"; } @@ -89,14 +89,14 @@ EOF } (my $shortErr = $Status{$host}{error}) =~ s/(.{48}).*/$1.../; $statusStr .= < ${HostLink($host)} - $Status{$host}{type} - ${UserLink(defined($Hosts->{$host}) + ${HostLink($host)} + $Status{$host}{type} + ${UserLink(defined($Hosts->{$host}) ? $Hosts->{$host}{user} : "")} - $startTime - $XferViewStr - $errorTime - ${EscHTML($shortErr)} + $startTime + $XferViewStr + $errorTime + ${EscHTML($shortErr)} EOF } my $now = timeStamp2(time); @@ -107,6 +107,7 @@ EOF my $numUserQueue = $QueueLen{UserQueue}; my $numCmdQueue = $QueueLen{CmdQueue}; my $serverStartTime = timeStamp2($Info{startTime}); + my $configLoadTime = timeStamp2($Info{ConfigLTime}); my $poolInfo = genPoolInfo("pool", \%Info); my $cpoolInfo = genPoolInfo("cpool", \%Info); if ( $Info{poolFileCnt} > 0 && $Info{cpoolFileCnt} > 0 ) { @@ -123,9 +124,8 @@ EOF } elsif ( $Info{cpoolFileCnt} > 0 ) { $poolInfo = $cpoolInfo; } - - Header($Lang->{H_BackupPC_Server_Status}); - print (eval ("qq{$Lang->{BackupPC_Server_Status}}")); + my $content = eval ("qq{$Lang->{BackupPC_Server_Status}}"); + Header($Lang->{H_BackupPC_Server_Status}, $content); Trailer(); }