Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/libvirt/munin-libvirtpy | ||
|---|---|---|
| 1 | 1 |
#!/usr/bin/python |
| 2 | 2 |
|
| 3 |
# Revision 1.0 2008/05/16 - Steven Wagner
|
|
| 3 |
# Revision 1.0 2008/05/16 - Steven Wagner |
|
| 4 | 4 |
# First functional release. Works for me. |
| 5 | 5 |
# |
| 6 | 6 |
# Revision 0.5 2008/05/01 - Julien Rottenberg |
| ... | ... | |
| 45 | 45 |
print "%s.type COUNTER" %(nodeName) |
| 46 | 46 |
print "%s.label %s" %(nodeName, nodeName) |
| 47 | 47 |
sys.exit(1) |
| 48 |
|
|
| 48 |
|
|
| 49 | 49 |
for id in ids: |
| 50 | 50 |
dom = conn.lookupByID(id) |
| 51 | 51 |
state, maxMem, memory, numVirtCpu, cpuTime = dom.info() |
| ... | ... | |
| 55 | 55 |
# print """Domain: %s, %s state (%s), %d CPUs, %d seconds, %d milliseconds, mem/max (%d/%d) """ \ |
| 56 | 56 |
# % (nodeName, ostype, state, numVirtCpu, cpuTime/float(1000000000), cpuTime/float(1000000), memory, maxMem ) |
| 57 | 57 |
print "%s.value %d" % (nodeName, cpuTime/float(1000000)) |
| 58 |
|
|
| 59 |
|
|
Formats disponibles : Unified diff