mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Fix review comments
Signed-off-by: Nathaniel Clark <Nathaniel.Clark@misrule.us>
This commit is contained in:
parent
b85c9aec3b
commit
8654230bb2
1 changed files with 7 additions and 6 deletions
|
@ -77,21 +77,22 @@ GPLv2
|
||||||
=cut
|
=cut
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import re
|
|
||||||
import os
|
|
||||||
import sys
|
|
||||||
import ctypes
|
import ctypes
|
||||||
|
import os
|
||||||
|
import re
|
||||||
|
import sys
|
||||||
from urllib import request
|
from urllib import request
|
||||||
|
|
||||||
def fixint(i):
|
|
||||||
return ctypes.c_uint32(int(i)).value
|
|
||||||
|
|
||||||
HOSTNAME = os.getenv("hostname", None)
|
HOSTNAME = os.getenv("hostname", None)
|
||||||
STATUS_URL = "http://192.168.100.1/RgConnect.asp"
|
STATUS_URL = "http://192.168.100.1/RgConnect.asp"
|
||||||
INFO_URL = "http://192.168.100.1/RgSwInfo.asp"
|
INFO_URL = "http://192.168.100.1/RgSwInfo.asp"
|
||||||
UPCOUNT = 4
|
UPCOUNT = 4
|
||||||
DOWNCOUNT = 16
|
DOWNCOUNT = 16
|
||||||
|
|
||||||
|
# Recast an int32 to uint32
|
||||||
|
def fixint(i):
|
||||||
|
return ctypes.c_uint32(int(i)).value
|
||||||
|
|
||||||
if len(sys.argv) == 2:
|
if len(sys.argv) == 2:
|
||||||
if sys.argv[1] == "config":
|
if sys.argv[1] == "config":
|
||||||
if HOSTNAME:
|
if HOSTNAME:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue