Permalink
Browse files

Allow 0 as a threshold value for -w and -c.

Signed-off-by: Benoit Sigoure <tsunanet@gmail.com>
  • Loading branch information...
1 parent c0a45ee commit 93741462d02711df5b675f075dc7a07bf7096760 @isavin isavin committed with tsuna Feb 14, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 tools/check_tsd
View
2 tools/check_tsd
@@ -85,7 +85,7 @@ def main(argv):
parser.error('Duration must be strictly positive.')
elif options.downsample_window <= 0:
parser.error('Downsample window must be strictly positive.')
- elif not options.critical and not options.warning:
+ elif options.critical is not None and options.warning is not None:
parser.error('You must specify at least a warning threshold (-w) or a'
' critical threshold (-c).')
elif options.ignore_recent < 0:

0 comments on commit 9374146

Please sign in to comment.