From 4e85621335996136a751d7f291d1242475aabf12 Mon Sep 17 00:00:00 2001 From: Seednode Date: Thu, 11 Jan 2024 03:36:16 -0600 Subject: [PATCH] Round all durations to microseconds --- cmd/files.go | 2 +- cmd/index.go | 4 ++-- cmd/root.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/files.go b/cmd/files.go index a6689ee..cdb9a35 100644 --- a/cmd/files.go +++ b/cmd/files.go @@ -438,7 +438,7 @@ func scanPaths(paths []string, sort string, index *fileIndex, formats types.Type filesMatched+filesSkipped, directoriesMatched, directoriesMatched+directoriesSkipped, - time.Since(startTime), + time.Since(startTime).Round(time.Microsecond), ) } diff --git a/cmd/index.go b/cmd/index.go index 5e574a9..7518817 100644 --- a/cmd/index.go +++ b/cmd/index.go @@ -175,7 +175,7 @@ func (index *fileIndex) Export(path string) error { length, path, humanReadableSize(int(stats.Size())), - time.Since(startTime), + time.Since(startTime).Round(time.Microsecond), ) } @@ -220,7 +220,7 @@ func (index *fileIndex) Import(path string) error { length, path, humanReadableSize(int(stats.Size())), - time.Since(startTime), + time.Since(startTime).Round(time.Microsecond), ) } diff --git a/cmd/root.go b/cmd/root.go index f8a5389..4ea0552 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -18,7 +18,7 @@ import ( const ( AllowedCharacters string = `^[A-z0-9.\-_]+$` - ReleaseVersion string = "5.1.0" + ReleaseVersion string = "5.2.0" ) var (