Fixed problem where baseline would always be shown

This commit is contained in:
Mike McGrath 2009-09-30 14:25:26 -05:00
parent f8c6c0d493
commit 1f8c18babe

View file

@ -39,6 +39,6 @@ class Headers():
print "\tApp time: %s" % headers['apptime'].split('=')[1]
print "\tApp server: %s" % headers['appserver']
if headers['proxytime'].split('=')[1] > baseline:
print "\t%s Proxy Time slower than baseline %s > %s" % (WARNING, headers['proxytime'].split('=')[1], baseline)
if int(headers['proxytime'].split('=')[1]) > baseline:
print "\t%s Proxy Time longer than baseline %s > %s" % (WARNING, headers['proxytime'].split('=')[1], baseline)
return (WARNING, headers['proxytime'].split('=')[1])