From: Siraaj Khandkar Date: Thu, 16 Aug 2018 16:59:04 +0000 (-0400) Subject: Rename age_max to ttl X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=f2273cab04f5f7b9188b9bd62b0e7be928054c28;p=khatus.git Rename age_max to ttl --- diff --git a/bin/khatus_bar b/bin/khatus_bar index 0db3e0b..ed3d8c4 100755 --- a/bin/khatus_bar +++ b/bin/khatus_bar @@ -47,11 +47,11 @@ function Data_update( src, key, val, len_line, len_head, len_val, time) { } } -function Data_get(src, key, age_max, time, age, is_expired) { +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] - is_expired = age_max && age > age_max + is_expired = ttl && age > ttl return is_expired ? "" : Data[src, key] }