1. Go to:
/Library/Widgets or ~/Library/Widgets
2. Select iStat Pro, right click, and select Open Package Content.
3. Open Wide.js or Tall.js file in some editor (Wide is for horizontal view, Tall for vertical)
**in my case i use horizontal, so I'm just gonna open Wide.js**
4. Locate the following code:
if(p.v("processes_sort_mode") == 'cpu')
widget.system('ps -arcwwwxo "pid %cpu command" | egrep "PID|$1" | grep -v grep | ' + exclude + ' head -7 | tail -6 | awk \'{print "
"}\'', function(data){ _self.updateProcessesOut(data);});else
widget.system('ps -amcwwwxo "pid rss command" | egrep "PID|$1" | grep -v grep | ' + exclude + ' head -7 | tail -6 | awk \'{print "
"}\'', function(data){ _self.updateProcessesOut(data);});}
5. Change "PID|$1" to "PID| $1" (Add space before $ sign)
6. Save the changes
7. remove widget and re-add it Dashboard, and it should be fixed
No comments:
Post a Comment