1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

Whitespace cleanup

* remove trailing whitespace
* remove empty lines at the end of files
This commit is contained in:
Lars Kruse 2018-08-02 02:03:42 +02:00
parent ef851f0c34
commit 17f784270a
604 changed files with 2927 additions and 2945 deletions

View file

@ -1,6 +1,6 @@
#!/usr/bin/python
# Revision 1.0 2008/05/16 - Steven Wagner
# Revision 1.0 2008/05/16 - Steven Wagner
# First functional release. Works for me.
#
# Revision 0.5 2008/05/01 - Julien Rottenberg
@ -45,7 +45,7 @@ if len(sys.argv) == 2:
print "%s.type COUNTER" %(nodeName)
print "%s.label %s" %(nodeName, nodeName)
sys.exit(1)
for id in ids:
dom = conn.lookupByID(id)
state, maxMem, memory, numVirtCpu, cpuTime = dom.info()
@ -55,5 +55,3 @@ for id in ids:
# print """Domain: %s, %s state (%s), %d CPUs, %d seconds, %d milliseconds, mem/max (%d/%d) """ \
# % (nodeName, ostype, state, numVirtCpu, cpuTime/float(1000000000), cpuTime/float(1000000), memory, maxMem )
print "%s.value %d" % (nodeName, cpuTime/float(1000000))