1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-11-23 19:03:46 +01:00

Remove debug print

This commit is contained in:
Tomas Edwardsson 2014-03-07 11:23:28 +00:00
parent 06194c84cc
commit d11d29185a

View File

@ -89,7 +89,6 @@ def remove_stale_state():
state_mtime = os.stat("/var/lib/nagios-okplugin/check_cpu").st_mtime state_mtime = os.stat("/var/lib/nagios-okplugin/check_cpu").st_mtime
boot_time = os.stat("/proc/1").st_mtime boot_time = os.stat("/proc/1").st_mtime
if state_mtime < boot_time: if state_mtime < boot_time:
print "unlinking"
os.unlink("/var/lib/nagios-okplugin/check_cpu") os.unlink("/var/lib/nagios-okplugin/check_cpu")
except OSError: except OSError:
return None return None