mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Fix python style issues reported by flake8
Additionally some python2-only "print" statements are now compatible with python3.
This commit is contained in:
parent
73f885e382
commit
7063330e03
17 changed files with 102 additions and 103 deletions
|
@ -139,8 +139,8 @@ def main():
|
|||
telnet.write("server:uptime()\n")
|
||||
telnet_response = telnet.read_until("minutes (", 5)
|
||||
parsed_info = uptime_re.findall(telnet_response)
|
||||
uptime_value = (float(parsed_info[0]) + float(parsed_info[1])/24
|
||||
+ float(parsed_info[2])/60/24)
|
||||
uptime_value = (float(parsed_info[0]) + float(parsed_info[1]) / 24
|
||||
+ float(parsed_info[2]) / 60 / 24)
|
||||
print("uptime.value %s" % (uptime_value))
|
||||
telnet.write("quit\n")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue