Rename age_max to ttl
authorSiraaj Khandkar <siraaj@khandkar.net>
Thu, 16 Aug 2018 16:59:04 +0000 (12:59 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Thu, 16 Aug 2018 16:59:04 +0000 (12:59 -0400)
bin/khatus_bar

index 0db3e0b..ed3d8c4 100755 (executable)
@@ -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]
 }
 
This page took 0.024342 seconds and 4 git commands to generate.