Skip to content

Commit

Permalink
Use 9 digits for error messages in Maximum rules
Browse files Browse the repository at this point in the history
  • Loading branch information
robbywalker committed Sep 14, 2011
1 parent 8af3aad commit 3c89f46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions checklib/src/greplin/nagios.py
Expand Up @@ -191,9 +191,9 @@ def format(self, name, value):
def message(self, name, value):
"""Create an error message."""
if self.check(value) == CRITICAL:
return '%s: %g%s > %g%s' % (name, value, self.unit, self.critLevel, self.unit)
return '%s: %.9g%s > %.9g%s' % (name, value, self.unit, self.critLevel, self.unit)
elif self.check(value) == WARNING:
return '%s: %g%s > %g%s' % (name, value, self.unit, self.warnLevel, self.unit)
return '%s: %.9g%s > %.9g%s' % (name, value, self.unit, self.warnLevel, self.unit)



Expand Down

0 comments on commit 3c89f46

Please sign in to comment.