From: Siraaj Khandkar Date: Thu, 16 Aug 2018 17:01:46 +0000 (-0400) Subject: Comment on the effective meaning of ttl=0 X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=fa45cd87a713f707cbe77b2b7516feaf77fb68ce;p=khatus.git Comment on the effective meaning of ttl=0 --- diff --git a/bin/khatus_bar b/bin/khatus_bar index ed3d8c4..bddf0b9 100755 --- a/bin/khatus_bar +++ b/bin/khatus_bar @@ -51,6 +51,7 @@ function Data_get(src, key, ttl, time, age, is_expired) { time = Data_get_time() A_time[src, key] = time age = time - M_time[src, key] + # ttl = 0 => forever is_expired = ttl && age > ttl return is_expired ? "" : Data[src, key] }