mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-25 06:26:34 +08:00
优化代码
This commit is contained in:
@@ -41,7 +41,7 @@ func StartMemoryStats(t *testing.T) {
|
||||
for range ticker.C {
|
||||
runtime.ReadMemStats(stat)
|
||||
if stat.HeapInuse == lastHeapInUse {
|
||||
return
|
||||
continue
|
||||
}
|
||||
lastHeapInUse = stat.HeapInuse
|
||||
|
||||
|
||||
Reference in New Issue
Block a user