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:
parent
ff44576c87
commit
df6527b165
|
@ -167,10 +167,10 @@ func Main (argStateDir string, processCallback ctwatch.ProcessCallback) {
|
|||
}
|
||||
|
||||
var startIndex uint64
|
||||
if *allTime {
|
||||
startIndex = 0
|
||||
} else if prevSTH != nil {
|
||||
if prevSTH != nil {
|
||||
startIndex = prevSTH.TreeSize
|
||||
} else if *allTime {
|
||||
startIndex = 0
|
||||
} else {
|
||||
startIndex = latestSTH.TreeSize
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue