Skip to content

Commit

Permalink
Merge pull request #18 from pdvian/wip-fix-glusterd-uptime
Browse files Browse the repository at this point in the history
glusterd-report: Fix incorrect reporting of glusterd uptime
  • Loading branch information
aravindavk authored Oct 10, 2017
2 parents ebb4b97 + d84cb50 commit 0bd39ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glusterhealth/reports/glusterd.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def report_check_glusterd_uptime(ctx):
cmd = "ps -C glusterd --no-header -o etimes"
try:
out = command_output(cmd)
if out.strip() < "86400":
if int(out.strip()) < 86400:
ctx.warning("Glusterd uptime is less than 24 hours",
uptime_sec=out.strip())
else:
Expand Down

0 comments on commit 0bd39ca

Please sign in to comment.