mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 06:10:54 +03:00
zip downloads: make zip entries relative to the current dir when possible
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -191,7 +191,7 @@ func ByteCountIEC(b int64) string {
|
||||
}
|
||||
|
||||
func byteCount(b int64, unit int64, maxPrecision bool) string {
|
||||
if b <= 0 {
|
||||
if b <= 0 && maxPrecision {
|
||||
return strconv.FormatInt(b, 10)
|
||||
}
|
||||
if b < unit {
|
||||
|
||||
Reference in New Issue
Block a user