Fixat issue #3 där OS Busy % blev noll istället för 100 när den maxas.
Showing
4 changed files
with
6 additions
and
2 deletions
No preview for this file type
No preview for this file type
JavaMonWeb/jetty/lilom.jar
0 → 100644
No preview for this file type
... | @@ -80,8 +80,12 @@ public class OraMon { | ... | @@ -80,8 +80,12 @@ public class OraMon { |
80 | double busy = getPerSecondValue("BUSY_TIME", OSSTAT); | 80 | double busy = getPerSecondValue("BUSY_TIME", OSSTAT); |
81 | if(idle != 0 && busy != 0) | 81 | if(idle != 0 && busy != 0) |
82 | return 100*(busy/(busy+idle)); | 82 | return 100*(busy/(busy+idle)); |
83 | else | 83 | else { |
84 | return 0; | 84 | if(busy == 0) |
85 | return 0; | ||
86 | else | ||
87 | return 100; | ||
88 | } | ||
85 | } | 89 | } |
86 | 90 | ||
87 | // OS LOAD | 91 | // OS LOAD | ... | ... |
-
Please register or sign in to post a comment