fix: add missing B suffix to list

This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2022-02-26 00:11:53 -05:00
1 parent df811d7c02
commit 9d8de8a9db
1 file changed
+1 -1
+1 -1
View File
@@ -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