home
/
code
/
khatus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4085a8
)
Rename age_max to ttl
author
Siraaj Khandkar
<siraaj@khandkar.net>
Thu, 16 Aug 2018 16:59:04 +0000
(12:59 -0400)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Thu, 16 Aug 2018 16:59:04 +0000
(12:59 -0400)
bin/khatus_bar
patch
|
blob
|
blame
|
history
diff --git
a/bin/khatus_bar
b/bin/khatus_bar
index
0db3e0b
..
ed3d8c4
100755
(executable)
--- 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]
}
This page took
0.024342 seconds
and
4
git commands to generate.