Format inline file sizes with humanReadableSize()
This commit is contained in:
parent
d4cf9cfa4f
commit
7d49a86e70
|
@ -11,7 +11,7 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
ReleaseVersion string = "0.90.0"
|
||||
ReleaseVersion string = "0.90.1"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -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),
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue