diff options
-rw-r--r-- | CHANGES | 3 | ||||
-rwxr-xr-x | bin/smokeinfo | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -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"; } |