diff options
author | Tobias Oetiker <tobi@oetiker.ch> | 2012-07-03 21:09:48 +0200 |
---|---|---|
committer | Tobias Oetiker <tobi@oetiker.ch> | 2012-07-03 21:09:48 +0200 |
commit | 689cbec359940d2eead85d9567a4b3be530507af (patch) | |
tree | 4ffc752d893ad2ae3564941cfa71d1203430111d | |
parent | 972673d1c94305ad6631e15b3b4213a0b4aef728 (diff) | |
download | smokeping-689cbec359940d2eead85d9567a4b3be530507af.tar.gz smokeping-689cbec359940d2eead85d9567a4b3be530507af.tar.xz |
fix smokeinfo to actually consider --start and --end
-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"; } |