|
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
monetta/scripts/cpu-usage.py
Line 53 in d9e0f56
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 0split(' ')obviously fails with the space in the process name