mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-07 05:46:38 +08:00
fix library display and docker compose update
This commit is contained in:
@@ -30,7 +30,7 @@ func parseSizeString(value string, unit string) int64 {
|
||||
if err != nil {
|
||||
return 0
|
||||
}
|
||||
switch strings.ToLower(unit) {
|
||||
switch strings.TrimSuffix(strings.ToLower(unit), "i") {
|
||||
case "kb":
|
||||
return int64(v * 1024)
|
||||
case "mb":
|
||||
|
||||
Reference in New Issue
Block a user