| 1 | [[PageOutline]] |
| 2 | |
| 3 | |
| 4 | * github:kimchi-project/kimchi |
| 5 | * [http://www-01.ibm.com/support/knowledgecenter/linuxonibm/liabp/liabpintrokimchi.htm?lang=ja IBM Knowledge Center] >Kimchi は、IBM® PowerKVM の使用を開始するために設計された管理ツールです。 |
| 6 | |
| 7 | * aur:kimchi 1.4.1-4 |
| 8 | * /usr/lib/python2.7/site-packages/kimchi/model/host.py |
| 9 | {{{#!diff |
| 10 | --- kimchi/model/host.py.old 2015-07-06 23:06:43.000000000 +0900 |
| 11 | +++ kimchi/model/host.py 2015-07-06 22:53:03.900805496 +0900 |
| 12 | @@ -87,8 +87,8 @@ |
| 13 | res['cpu_model'] = line.split(':')[1].strip() |
| 14 | break |
| 15 | |
| 16 | - res['cpus'] = psutil.NUM_CPUS |
| 17 | - res['memory'] = psutil.TOTAL_PHYMEM |
| 18 | + res['cpus'] = psutil.cpu_count() |
| 19 | + res['memory'] = psutil.virtual_memory().total |
| 20 | |
| 21 | # Include IBM PowerKVM name to supported distro names |
| 22 | _sup_distros = platform._supported_dists + ('ibm_powerkvm','arch',) |
| 23 | @@ -231,7 +231,7 @@ |
| 24 | prev_recv_bytes = net_recv_bytes[-1] if net_recv_bytes else 0 |
| 25 | prev_sent_bytes = net_sent_bytes[-1] if net_sent_bytes else 0 |
| 26 | |
| 27 | - net_ios = psutil.network_io_counters(True) |
| 28 | + net_ios = psutil.net_io_counters(True) |
| 29 | recv_bytes = 0 |
| 30 | sent_bytes = 0 |
| 31 | for key in set(netinfo.nics() + |
| 32 | }}} |