wiki:TipAndDoc/VM/KVM/kimchi

Version 1 (modified by mitty, 9 years ago) (diff)

--

  • aur:kimchi 1.4.1-4
  • /usr/lib/python2.7/site-packages/kimchi/model/host.py
    • kimchi/model/host.py

      old new  
      8787                        res['cpu_model'] = line.split(':')[1].strip() 
      8888                        break 
      8989 
      90         res['cpus'] = psutil.NUM_CPUS 
      91         res['memory'] = psutil.TOTAL_PHYMEM 
       90        res['cpus'] = psutil.cpu_count() 
       91        res['memory'] = psutil.virtual_memory().total 
      9292 
      9393        # Include IBM PowerKVM name to supported distro names 
      9494        _sup_distros = platform._supported_dists + ('ibm_powerkvm','arch',) 
       
      231231        prev_recv_bytes = net_recv_bytes[-1] if net_recv_bytes else 0 
      232232        prev_sent_bytes = net_sent_bytes[-1] if net_sent_bytes else 0 
      233233 
      234         net_ios = psutil.network_io_counters(True) 
       234        net_ios = psutil.net_io_counters(True) 
      235235        recv_bytes = 0 
      236236        sent_bytes = 0 
      237237        for key in set(netinfo.nics() +