From 689cbec359940d2eead85d9567a4b3be530507af Mon Sep 17 00:00:00 2001 From: Tobias Oetiker Date: Tue, 3 Jul 2012 21:09:48 +0200 Subject: fix smokeinfo to actually consider --start and --end --- CHANGES | 3 +++ bin/smokeinfo | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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"; } -- cgit v1.2.3-24-g4f1b