Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade psutil to 4.3.0 #2342

Merged
merged 2 commits into from
Jun 21, 2016
Merged

Upgrade psutil to 4.3.0 #2342

merged 2 commits into from
Jun 21, 2016

Conversation

fabaff
Copy link
Member

@fabaff fabaff commented Jun 20, 2016

#4.3.0 - 2016-06-18

Enhancements

  • [Linux] different speedup improvements:
    Process.ppid() is 20% faster
    Process.status() is 28% faster
    Process.name() is 25% faster
    Process.num_threads is 20% faster on Python 3

Bug fixes

  • [Windows] Windows wheels are incompatible with pip 7.1.2.
  • [NetBSD] fix compilation on NetBSD-5.x.
  • [NetBSD] virtual_memory() raises TypeError on Python 3.
  • [UNIX] psutil.disk_usage() percent field takes root reserved space into account.
  • [Windows] fixed net_io_counter() values wrapping after 4.3GB in Windows Vista (NT 6.0) and above using 64bit values from newer win APIs.

Tested with the following configuration:

sensor:
  - platform: systemmonitor
    resources:
      - type: 'disk_use_percent'
        arg: '/'
      - type: 'disk_use'
        arg: '/home'
      - type: 'disk_free'
        arg: '/'
      - type: 'memory_use_percent'
      - type: 'memory_use'
      - type: 'memory_free'
      - type: 'swap_use_percent'
      - type: 'swap_use'
      - type: 'swap_free'
      - type: 'network_in'
        arg: 'wlp1s0'
      - type: 'network_out'
        arg: 'wlp1s0'
      - type: 'packets_in'
        arg: 'wlp1s0'
      - type: 'packets_out'
        arg: 'wlp1s0'
      - type: 'ipv4_address'
        arg: 'wlp1s0'
      - type: 'ipv6_address'
        arg: 'wlp1s0'
      - type: 'processor_use'
      - type: 'last_boot'
      - type: 'since_last_boot'

@balloob
Copy link
Member

balloob commented Jun 21, 2016

Looks good! 🐬

@balloob balloob merged commit caa096e into home-assistant:dev Jun 21, 2016
@fabaff fabaff deleted the psutil-upgrade branch July 2, 2016 09:48
@home-assistant home-assistant locked and limited conversation to collaborators Mar 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants