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:
f2273ca
)
Comment on the effective meaning of ttl=0
author
Siraaj Khandkar
<siraaj@khandkar.net>
Thu, 16 Aug 2018 17:01:46 +0000
(13:01 -0400)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Thu, 16 Aug 2018 17:01:46 +0000
(13:01 -0400)
bin/khatus_bar
patch
|
blob
|
blame
|
history
diff --git
a/bin/khatus_bar
b/bin/khatus_bar
index
ed3d8c4
..
bddf0b9
100755
(executable)
--- 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]
}
This page took
0.027003 seconds
and
4
git commands to generate.