fix: add missing B suffix to list
This commit is contained in:
1 parent
df811d7c02
commit
9d8de8a9db
1 file changed
+1
-1
@@ -10,7 +10,7 @@ import (
|
|||||||
func addMemorySuffixForDocker(key string, value string) string {
|
func addMemorySuffixForDocker(key string, value string) string {
|
||||||
if key == "memory" {
|
if key == "memory" {
|
||||||
hasSuffix := false
|
hasSuffix := false
|
||||||
suffixes := []string{"b", "k", "m", "g", "KB", "MB", "GB"}
|
suffixes := []string{"b", "k", "m", "g", "KB", "MB", "GB", "B"}
|
||||||
for _, suffix := range suffixes {
|
for _, suffix := range suffixes {
|
||||||
if strings.HasSuffix(value, suffix) {
|
if strings.HasSuffix(value, suffix) {
|
||||||
hasSuffix = true
|
hasSuffix = true
|
||||||
|
|||||||
Reference in new issue
Block a user