1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 10:39:53 +00:00

Fix review comments

Signed-off-by: Nathaniel Clark <Nathaniel.Clark@misrule.us>
This commit is contained in:
Nathaniel Clark 2021-12-09 09:16:53 -05:00 committed by Lars Kruse
parent b85c9aec3b
commit 8654230bb2

View file

@ -77,21 +77,22 @@ GPLv2
=cut
"""
import re
import os
import sys
import ctypes
import os
import re
import sys
from urllib import request
def fixint(i):
return ctypes.c_uint32(int(i)).value
HOSTNAME = os.getenv("hostname", None)
STATUS_URL = "http://192.168.100.1/RgConnect.asp"
INFO_URL = "http://192.168.100.1/RgSwInfo.asp"
UPCOUNT = 4
DOWNCOUNT = 16
# Recast an int32 to uint32
def fixint(i):
return ctypes.c_uint32(int(i)).value
if len(sys.argv) == 2:
if sys.argv[1] == "config":
if HOSTNAME: