fix: also support KB, MB, GB, and B as valid suffixes
This commit is contained in:
@@ -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"}
|
suffixes := []string{"b", "k", "m", "g", "KB", "MB", "GB"}
|
||||||
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