Skip to content

Commit b1dba2b

Browse files
committed
Use supplied start time rather than refetching time.Now()
1 parent 158773c commit b1dba2b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func realMain(start time.Time, args []string, confFunc userConfigDirFunc, stdout
6060

6161
allCandidates := newCandidates(int(cfg.maxCount.v), cfg.maxAge)
6262
cc := newConcurrencyController(int(cfg.maxScanners.v))
63-
scn := newScanner(cfg, cc, allCandidates, time.Now(), stderr)
63+
scn := newScanner(cfg, cc, allCandidates, start, stderr)
6464
for _, dirName := range scanList {
6565
dirName = filepath.Clean(dirName) // Clean here so we can avoid .Join/Clean later
6666
scn.descend(0, dirName) // Runs a goroutine

0 commit comments

Comments
 (0)