Version 1 (modified by mitty, 9 years ago) (diff) |
---|
- github:kimchi-project/kimchi
- IBM Knowledge Center >Kimchi は、IBM® PowerKVM の使用を開始するために設計された管理ツールです。
- aur:kimchi 1.4.1-4
- /usr/lib/python2.7/site-packages/kimchi/model/host.py
-
kimchi/model/host.py
old new 87 87 res['cpu_model'] = line.split(':')[1].strip() 88 88 break 89 89 90 res['cpus'] = psutil. NUM_CPUS91 res['memory'] = psutil. TOTAL_PHYMEM90 res['cpus'] = psutil.cpu_count() 91 res['memory'] = psutil.virtual_memory().total 92 92 93 93 # Include IBM PowerKVM name to supported distro names 94 94 _sup_distros = platform._supported_dists + ('ibm_powerkvm','arch',) … … 231 231 prev_recv_bytes = net_recv_bytes[-1] if net_recv_bytes else 0 232 232 prev_sent_bytes = net_sent_bytes[-1] if net_sent_bytes else 0 233 233 234 net_ios = psutil.net work_io_counters(True)234 net_ios = psutil.net_io_counters(True) 235 235 recv_bytes = 0 236 236 sent_bytes = 0 237 237 for key in set(netinfo.nics() +
-