fix: 修复pingtest和speedtest在无root权限环境下的鉴权问题

This commit is contained in:
spiritlhl
2025-07-01 12:06:59 +00:00
parent 5a6d6845c1
commit ca0470f01a
5 changed files with 14 additions and 14 deletions

View File

@@ -25,7 +25,8 @@ func MemoryTest(language, testMethod string) {
case "dd":
res = memory.DDTest(language)
default:
res = "Unsupported test method"
res = "Unsupported test method, switch to use dd test.\n"
res += memory.DDTest(language)
}
}
if !strings.Contains(res, "\n") && res != "" {