Rename age_max to ttl
[khatus.git] / bin / khatus_bar
index e2e505c..ed3d8c4 100755 (executable)
@@ -23,9 +23,6 @@ $2 == "khatus_sensor_datetime" {
     print_msg_ok("status_bar", make_status_bar())
 }
 
-# Let everything else through
-//
-
 # -----------------------------------------------------------------------------
 # Data
 # -----------------------------------------------------------------------------
@@ -50,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.023817 seconds and 4 git commands to generate.