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 method names in SlashProcPoller
kevinclark (author)
Tue May 13 21:11:14 -0700 2008
commit  57bd329169794773b962e631d239cf3c8a3ed9de
tree    04b6b7b0642b8270400a73e2667d4844f951cfc6
parent  4bd501221b1568d769d900f60d36d6c0b264350b
...
19
20
21
22
 
23
24
25
26
27
 
28
29
30
...
19
20
21
 
22
23
24
25
26
 
27
28
29
30
0
@@ -19,12 +19,12 @@
0
         stat[:rss].to_i * @@kb_per_page
0
       end
0
       
0
- def precent_memory(pid)
0
+ def percent_memory(pid)
0
         (memory / @@total_mem.to_f) * 100
0
       end
0
       
0
       # TODO: Change this to calculate the wma instead
0
- def cpu_percent
0
+ def percent_cpu
0
         percent_cpu = 0
0
         stats = stat
0
         total_time = stats[:utime].to_i + stats[:stime].to_i # in jiffies

Comments

    No one has commented yet.