From 7d49a86e702bfec33829b93d1250446533f7dedb Mon Sep 17 00:00:00 2001 From: Seednode Date: Fri, 15 Sep 2023 15:19:56 -0500 Subject: [PATCH] Format inline file sizes with humanReadableSize() --- cmd/root.go | 2 +- cmd/web.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 39af472..fe6fcd3 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -11,7 +11,7 @@ import ( ) const ( - ReleaseVersion string = "0.90.0" + ReleaseVersion string = "0.90.1" ) var ( diff --git a/cmd/web.go b/cmd/web.go index daab36a..60ec0b4 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -307,10 +307,10 @@ func serveMedia(paths []string, regexes *regexes, cache *fileCache, formats *typ if format.Type() != "embed" { if Verbose { - fmt.Printf("%s | Serve: %s (%d) to %s in %s\n", + fmt.Printf("%s | Serve: %s (%s) to %s in %s\n", startTime.Format(logDate), path, - len(formattedPage), + humanReadableSize(len(formattedPage)), realIP(r), time.Since(startTime).Round(time.Microsecond), )