summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index 0c8fb2d..db09e03 100644
--- a/main.go
+++ b/main.go
@@ -117,10 +117,10 @@ func doNewest() (string, error) {
durs := cobol.Since(p.Ctime) + " vs found " + cobol.Since(found.Ctime)
if time.Since(curtime) > time.Since(newtime) {
log.Printf("%-20.20s %-20.20s %-80.80s %s\n", "found is newer", p.Package, p.Filename, durs)
- newest.Delete(found)
- newest.Clone(p)
} else {
log.Printf("%-20.20s %-20.20s %-80.80s %s\n", "found is older", p.Package, p.Filename, durs)
+ newest.Delete(found)
+ newest.Clone(p)
}
}