added notion of expiration to snapshot. Full scan to trim the snapshot is no longer needed

This commit is contained in:
Manuel Simon Hirsig
2016-01-17 06:19:30 +01:00
parent a1cfce2300
commit 9c520df47c
6 changed files with 79 additions and 41 deletions
+2 -1
View File
@@ -149,8 +149,9 @@ function scan_auctions_helper(i, n, k)
local snapshot = Aux.persistence.load_snapshot()
if not snapshot.contains(auction_info.signature) then
snapshot.add(auction_info.signature)
snapshot.add(auction_info.signature, auction_info.duration)
Aux.stat_average.process_auction(auction_info)
Aux.stat_histogram.process_auction(auction_info)
end
else
recurse()