From: Siraaj Khandkar Date: Mon, 30 Jul 2018 14:16:41 +0000 (-0400) Subject: Clarify comment X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=3739a112ab37cc02e58fb7ac49cef441ab298848;p=khatus.git Clarify comment --- diff --git a/bin/khatus_loop b/bin/khatus_loop index edefb98..99e1628 100755 --- 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)