Browse files

Allow -w and -c to accept floats.

Signed-off-by: Benoit Sigoure <>
  • Loading branch information...
1 parent 7c43f78 commit 3b14ccd9fcce0ab88b7be181b4946e8067ef9565 @aravind aravind committed with tsuna Dec 27, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 tools/check_tsd
@@ -53,9 +53,9 @@ def main(argv):
metavar='METHOD', help='Comparison method: gt, ge, lt, le, eq, ne.')
parser.add_option('-r', '--rate', default=False,
action='store_true', help='Use rate value as comparison operand.')
- parser.add_option('-w', '--warning', type='int', metavar='THRESHOLD',
+ parser.add_option('-w', '--warning', type='float', metavar='THRESHOLD',
help='Threshold for warning. Uses the comparison method.')
- parser.add_option('-c', '--critical', type='int', metavar='THRESHOLD',
+ parser.add_option('-c', '--critical', type='float', metavar='THRESHOLD',
help='Threshold for critical. Uses the comparison method.')
parser.add_option('-v', '--verbose', default=False,
action='store_true', help='Be more verbose.')

0 comments on commit 3b14ccd

Please sign in to comment.