summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2009-01-15 11:28:10 +0100
committerTobi Oetiker <tobi@oetiker.ch>2009-01-15 11:28:10 +0100
commitbd1904210d02ff63b4c6ccc8775e901d6663e49c (patch)
tree96ff9224ed027c4fd3cdb7a6f2a8e50a75271eba /bin
parent428b580ac543bef7c96899dd1e30ffae46a6ea3e (diff)
downloadsmokeping-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-xbin/smokeinfo2
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";
}
}