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

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

Open
reisub-de opened this issue Sep 8, 2017 · 0 comments

Comments

@reisub-de
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant