diff options
author | Tobi Oetiker <tobi@oetiker.ch> | 2009-01-15 11:28:10 +0100 |
---|---|---|
committer | Tobi Oetiker <tobi@oetiker.ch> | 2009-01-15 11:28:10 +0100 |
commit | bd1904210d02ff63b4c6ccc8775e901d6663e49c (patch) | |
tree | 96ff9224ed027c4fd3cdb7a6f2a8e50a75271eba /bin | |
parent | 428b580ac543bef7c96899dd1e30ffae46a6ea3e (diff) | |
download | smokeping-bd1904210d02ff63b4c6ccc8775e901d6663e49c.tar.gz smokeping-bd1904210d02ff63b4c6ccc8775e901d6663e49c.tar.xz |
* make it work with missing rrd files
* make it work correctly for nomasterpoll option
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/smokeinfo | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/smokeinfo b/bin/smokeinfo index 77b3653..978f7bf 100755 --- a/bin/smokeinfo +++ b/bin/smokeinfo @@ -31,7 +31,7 @@ sub main() print "\n"; for my $node (@$nodes) { my $data = $si->stat_node($node,'end-24h','now'); - print join $opt{separator},$node->{path},map {sprintf($opt{format},$data->{$_})} @rows; + print join $opt{separator},$node->{path},map {defined $data->{$_} ? sprintf($opt{format},$data->{$_}) : '?'} @rows; print "\n"; } } |