public
Fork of mojombo/god
Description: Ruby process monitor
Homepage: http://god.rubyforge.org
Clone URL: git://github.com/kevinclark/god.git
Search Repo:
Fix args to percent_memory
kevinclark (author)
Tue May 13 21:20:32 -0700 2008
commit  4f12e1ceb12a9da7444a4de3572b3288f623276b
tree    4822c8a09e8d7873f4df7f02971e7c597c396069
parent  57bd329169794773b962e631d239cf3c8a3ed9de
...
19
20
21
22
 
23
24
25
26
27
28
29
30
31
...
19
20
21
 
22
23
24
25
26
27
 
28
29
30
0
@@ -19,13 +19,12 @@
0
         stat[:rss].to_i * @@kb_per_page
0
       end
0
       
0
- def percent_memory(pid)
0
+ def percent_memory
0
         (memory / @@total_mem.to_f) * 100
0
       end
0
       
0
       # TODO: Change this to calculate the wma instead
0
       def percent_cpu
0
- percent_cpu = 0
0
         stats = stat
0
         total_time = stats[:utime].to_i + stats[:stime].to_i # in jiffies
0
         seconds = uptime - stats[:starttime].to_i / @@hertz

Comments

    No one has commented yet.