summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--goSrcScan.go2
-rw-r--r--humanShowRepo.go9
2 files changed, 7 insertions, 4 deletions
diff --git a/goSrcScan.go b/goSrcScan.go
index fe65a37..325aae2 100644
--- a/goSrcScan.go
+++ b/goSrcScan.go
@@ -41,7 +41,7 @@ func (f *Forge) ScanGoSrc() (bool, error) {
}
if newcount != 0 {
log.Info("forge go src scan found", newcount, "repos")
- f.Repos.ConfigSave()
+ f.SetConfigSave(true)
}
return true, err
}
diff --git a/humanShowRepo.go b/humanShowRepo.go
index 4b6e436..a1d462b 100644
--- a/humanShowRepo.go
+++ b/humanShowRepo.go
@@ -60,15 +60,18 @@ func (f *Forge) HumanPrintRepo(check *gitpb.Repo) {
found.AppendUniqueGoPath(check)
f.PrintHumanTable(found)
- printTime("LastPull", check.Times.LastPull.AsTime())
- printTime("LastUpdate", check.Times.LastUpdate.AsTime())
- printTime("LastDirty", check.Times.LastDirty.AsTime())
+ printTime("Last Pull", check.Times.LastPull.AsTime())
+ printTime("Last Dirty", check.Times.LastDirty.AsTime())
printTime("dir mtime", check.Times.MtimeDir.AsTime())
printTime("HEAD mtime", check.Times.MtimeHead.AsTime())
printTime("Index mtime", check.Times.MtimeIndex.AsTime())
printTime("fetch", check.Times.MtimeFetch.AsTime())
printTime("last go.sum", check.Times.LastGoDep.AsTime())
printTime("last commit", check.Times.NewestCommit.AsTime())
+
+ now := time.Now()
+ dur := now.Sub(check.Times.LastUpdate.AsTime())
+ log.Printf("Repo Last Reload: %s\n", shell.FormatDuration(dur))
}
func (f *Forge) testGoRepo(check *gitpb.Repo) {