fix: add missing B suffix to list

This commit is contained in:
Jose Diaz-Gonzalez
2022-02-26 00:11:53 -05:00
committed by GitHub
parent df811d7c02
commit 9d8de8a9db

View File

@@ -10,7 +10,7 @@ import (
func addMemorySuffixForDocker(key string, value string) string {
if key == "memory" {
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 {
if strings.HasSuffix(value, suffix) {
hasSuffix = true