summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-11 09:25:37 -0500
committerJeff Carr <[email protected]>2025-10-11 09:50:08 -0500
commit2677081b8e9514d689049af9f1450197df57ad08 (patch)
treecd9ef4aa6a63b325b2973665298939c2ab5e3dd6 /main.go
parent20c8b7a721064197d42b8f1447abfca98d7bd350 (diff)
oops. was deleting the newest one
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)
}
}