aboutsummaryrefslogtreecommitdiffstats
path: root/lib/collect.c
diff options
context:
space:
mode:
authorYunchih Chen <yunchih.cat@gmail.com>2018-03-20 15:49:20 +0800
committerYunchih Chen <yunchih.cat@gmail.com>2018-03-20 15:54:45 +0800
commitfc5d23e8062c4a16b4dbacefb7c501886781453c (patch)
treeea1c60065639a20ca4a95a9657d6654f3d0242ef /lib/collect.c
parente9b3c4ad4a137a77526e90b9d4d3092749cc26de (diff)
downloadnfcollect-fc5d23e8062c4a16b4dbacefb7c501886781453c.tar
nfcollect-fc5d23e8062c4a16b4dbacefb7c501886781453c.tar.gz
nfcollect-fc5d23e8062c4a16b4dbacefb7c501886781453c.tar.bz2
nfcollect-fc5d23e8062c4a16b4dbacefb7c501886781453c.tar.lz
nfcollect-fc5d23e8062c4a16b4dbacefb7c501886781453c.tar.xz
nfcollect-fc5d23e8062c4a16b4dbacefb7c501886781453c.tar.zst
nfcollect-fc5d23e8062c4a16b4dbacefb7c501886781453c.zip
Calculate starting trunk index
When the collector is restarted, it needs to pick up from where it left off and continue collecting, instead of always starting from index 0 and truncating existing storage. The heuristic is to look at the timestamp of all qualified trunk files and start from the subsequent index of the newest.
Diffstat (limited to 'lib/collect.c')
0 files changed, 0 insertions, 0 deletions