source:
npl/monitoring/smokeping/smokeping-mail.patch
@
c5c522c
Last change on this file since c5c522c was c5c522c, checked in by , 8 years ago | |
---|---|
|
|
File size: 834 bytes |
-
lib/Smokeping.pm
diff -rupN smokeping-2.4.2-orig/lib/Smokeping.pm smokeping-2.4.2/lib/Smokeping.pm
old new sub check_alerts { 1809 1809 $line .= "[from $slave]" if $slave; 1810 1810 do_log("Alert $_ $what for $line"); 1811 1811 my $urlline = $line; 1812 $urlline = $cfg->{General}{cgiurl}."?target=".$line;1812 $urlline = $cfg->{General}{cgiurl}.$line.".html"; 1813 1813 my $loss = "loss: ".join ", ",map {defined $_ ? (/^\d/ ? sprintf "%.0f%%", $_ :$_):"U" } @{$x->{loss}}; 1814 1814 my $rtt = "rtt: ".join ", ",map {defined $_ ? (/^\d/ ? sprintf "%.0fms", $_*1000 :$_):"U" } @{$x->{rtt}}; 1815 1815 my $time = time;
Note: See TracBrowser
for help on using the repository browser.