mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Merge pull request #170 from MaxDudu/master
fix set call for redis-speed plugin
This commit is contained in:
commit
2b09747a22
@ -54,10 +54,10 @@ if ( $config ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
my $key = "test-key";
|
my $key = "test-key";
|
||||||
my $times = 200;
|
my $times = 20;
|
||||||
|
|
||||||
print "ping.value " . &get_time( $times, sub { $r->ping(); }) . "\n";
|
print "ping.value " . &get_time( $times, sub { $r->ping(); }) . "\n";
|
||||||
print "set.value " . &get_time( $times, sub { $r->set($key, 1); }) . "\n";
|
print "set.value " . &get_time( $times, sub { $r->set($key => 'SET ' . $key . ' 1'); }) . "\n";
|
||||||
print "get.value " . &get_time( $times, sub { $r->get($key); }) . "\n";
|
print "get.value " . &get_time( $times, sub { $r->get($key); }) . "\n";
|
||||||
|
|
||||||
# vim: ft=perl ai ts=4 sw=4 et:
|
# vim: ft=perl ai ts=4 sw=4 et:
|
||||||
|
Loading…
Reference in New Issue
Block a user