diff options
author | Tobi Oetiker <tobi@oetiker.ch> | 2010-02-19 14:57:43 +0100 |
---|---|---|
committer | Tobi Oetiker <tobi@oetiker.ch> | 2010-02-19 14:57:43 +0100 |
commit | ccac2c707170b3e4ccb8c3f714abcaf9e1ceb962 (patch) | |
tree | 9fc217f60ac41d614df776ea4ac65e5f7c26c62d | |
parent | 9eb3e9ccd4d3d9fa6494a4e543d2948ceacf3639 (diff) | |
download | smokeping-ccac2c707170b3e4ccb8c3f714abcaf9e1ceb962.tar.gz smokeping-ccac2c707170b3e4ccb8c3f714abcaf9e1ceb962.tar.xz |
fix spaceing in alert from slave
-rw-r--r-- | lib/Smokeping.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm index 990de60..136b56b 100644 --- a/lib/Smokeping.pm +++ b/lib/Smokeping.pm @@ -1808,7 +1808,7 @@ sub check_alerts { $line =~ s|/host$||; $line =~ s|/|.|g; my $urlline = $cfg->{General}{cgiurl}."?target=".$line; - $line .= "[from $slave]" if $slave; + $line .= " [from $slave]" if $slave; do_log("Alert $_ $what for $line"); my $loss = "loss: ".join ", ",map {defined $_ ? (/^\d/ ? sprintf "%.0f%%", $_ :$_):"U" } @{$x->{loss}}; my $rtt = "rtt: ".join ", ",map {defined $_ ? (/^\d/ ? sprintf "%.0fms", $_*1000 :$_):"U" } @{$x->{rtt}}; |