Code

MyPlugin.pm: Set max value to 65535 instead of undef.
authorSebastian Harl <sh@tokkee.org>
Tue, 5 Jun 2007 21:29:52 +0000 (23:29 +0200)
committerSebastian Harl <sh@tokkee.org>
Tue, 5 Jun 2007 21:29:52 +0000 (23:29 +0200)
The current handling of undefined values is not quite what it is supposed to
be.

debian/examples/MyPlugin.pm

index 3c9121ff9ebc8d4bd1eee440cadc163be5e4baa6..1b98d5b84143f64820d9132663874a87672bbe57 100644 (file)
@@ -25,7 +25,7 @@ my $dataset =
                name => 'my_ds',
                type => Collectd::DS_TYPE_GAUGE,
                min  => 0,
-               max  => undef,
+               max  => 65535,
        },
 ];