normalize cli output
This commit is contained in:
parent
ba4215bd0f
commit
b1b98703ce
@ -47,5 +47,5 @@ mapping = {
|
||||
}
|
||||
|
||||
if __name__ == '__main__':
|
||||
for item in diskspace(filesystems=["/", "/tmp/monitor"]):
|
||||
for item in diskspace(filesystems=["/", "/dev"]):
|
||||
print(item)
|
||||
|
@ -24,5 +24,5 @@ mapping = {
|
||||
}
|
||||
|
||||
if __name__ == '__main__':
|
||||
for avg in load():
|
||||
print(' '.join([avg["load_1m"], avg["load_5m"], avg["load_15m"]]))
|
||||
for item in load():
|
||||
print(item)
|
||||
|
@ -64,5 +64,4 @@ mapping = {
|
||||
|
||||
if __name__ == '__main__':
|
||||
for item in meminfo():
|
||||
for k,v in item.items():
|
||||
print("%s: %s"%(k,v))
|
||||
print(item)
|
||||
|
@ -71,5 +71,5 @@ mapping = {
|
||||
}
|
||||
|
||||
if __name__ == '__main__':
|
||||
for stats in procs():
|
||||
print("%s procs %s kthreads %s threads" % (stats["procs"], stats["kthreads"], stats["threads"]))
|
||||
for item in procs():
|
||||
print(item)
|
||||
|
@ -14,4 +14,4 @@ mapping = {
|
||||
|
||||
if __name__ == '__main__':
|
||||
for item in uptime():
|
||||
print(item["uptime"])
|
||||
print(item)
|
||||
|
Loading…
x
Reference in New Issue
Block a user