mirror of
https://github.com/oneclickvirt/ecs.git
synced 2025-10-05 07:17:01 +08:00
fix: 修复pingtest和speedtest在无root权限环境下的鉴权问题
This commit is contained in:
@@ -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 != "" {
|
||||
|
Reference in New Issue
Block a user