summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGES3
-rwxr-xr-xbin/smokeinfo2
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 4adc81b..4bb9c1c 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+* in smokeinfo actually use the start and end options ... do not only
+ advertise them ... thanks to Chris Myers for reporting this -- tobi
+
* in the smokeping.fcgi sample, make sure to exec the script so that
mod_fcgi tracks the right process -- Eric Searcy
diff --git a/bin/smokeinfo b/bin/smokeinfo
index caf77d2..8f41a2a 100755
--- a/bin/smokeinfo
+++ b/bin/smokeinfo
@@ -33,7 +33,7 @@ sub main()
print '# ',join $opt{separator}, 'node_path',@rows if not $opt{'no-head'};
print "\n";
for my $node (@$nodes) {
- my $data = $si->stat_node($node,'end-24h','now');
+ my $data = $si->stat_node($node,$opt{start},$opt{end});
print join $opt{separator},$node->{path},map {defined $data->{$_} ? sprintf($opt{format},$data->{$_}) : '?'} @rows;
print "\n";
}