home
/
code
/
khatus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75b08da
)
Clarify comment
author
Siraaj Khandkar
<siraaj@khandkar.net>
Mon, 30 Jul 2018 14:16:41 +0000
(10:16 -0400)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Mon, 30 Jul 2018 14:16:41 +0000
(10:16 -0400)
bin/khatus_loop
patch
|
blob
|
blame
|
history
diff --git
a/bin/khatus_loop
b/bin/khatus_loop
index
edefb98
..
99e1628
100755
(executable)
--- a/
bin/khatus_loop
+++ b/
bin/khatus_loop
@@
-512,7
+512,7
@@
consume() {
function make_status_mem( total, used, percent, status) {
total = db["memory_total"]
used = db["memory_used"]
- # To avoid division by zero
+ # To avoid division by zero
when data is missing
if (total && used) {
percent = round((used / total) * 100)
status = sprintf("%d%%", percent)
This page took
0.027934 seconds
and
4
git commands to generate.