Change -all_time to only affect logs we haven't seen before

It's more useful this way - there's no sense in scanning logs we've
already scanned.

I need a better name for this switch, though.
This commit is contained in:
Andrew Ayer 2016-02-20 12:04:07 -08:00
parent ff44576c87
commit df6527b165
1 changed files with 3 additions and 3 deletions

View File

@ -167,10 +167,10 @@ func Main (argStateDir string, processCallback ctwatch.ProcessCallback) {
} }
var startIndex uint64 var startIndex uint64
if *allTime { if prevSTH != nil {
startIndex = 0
} else if prevSTH != nil {
startIndex = prevSTH.TreeSize startIndex = prevSTH.TreeSize
} else if *allTime {
startIndex = 0
} else { } else {
startIndex = latestSTH.TreeSize startIndex = latestSTH.TreeSize
} }