Commit 55b12dba 55b12dba93ee03834e57007188d4616b2925fea7 by Christian Gerdes

Fixat issue #3 där OS Busy % blev noll istället för 100 när den maxas.

1 parent 0694b33b
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
......