Skip to content

cpu-usage.py process_stat_data_by_pid_ng fails on processes with space #1

Description

@reisub-de

procdata = proctimes.split(' ')

Firefox starts a process with this stat file:
3102 (Web Content) S 2738 2279 2279 1026 2279 4194304 7879765 0 235 0 43890 5292 0 0 20 0 25 0 15091 2447937536 108858 18446744073709551615 474214596608 474214752772 140737361509984 140737361508192 140450924365581 0 0 16781314 1107297528 0 0 0 17 0 0 0 397 0 0 474216851856 474216853608 474247172096 140737361511027 140737361512373 140737361512373 140737361514463 0
split(' ') obviously fails with the space in the process name

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions