From df6527b165d4379937e78b96118a02b191f5db13 Mon Sep 17 00:00:00 2001 From: Andrew Ayer Date: Sat, 20 Feb 2016 12:04:07 -0800 Subject: [PATCH] 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. --- cmd/common.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/common.go b/cmd/common.go index af8e789..6d4abc2 100644 --- a/cmd/common.go +++ b/cmd/common.go @@ -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 }