Fix bug in getMemoryUsage()

This commit is contained in:
Yang Luo
2023-04-02 10:50:41 +08:00
parent 681b086de0
commit 98a99f0215
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ func getMemoryUsage() (uint64, uint64, error) {
var m runtime.MemStats
runtime.ReadMemStats(&m)
return m.TotalAlloc, virtualMem.Total, nil
return m.Alloc, virtualMem.Total, nil
}
func GetSystemInfo() (*SystemInfo, error) {

View File

@ -45,7 +45,7 @@ class SystemInfo extends React.Component {
}).catch(error => {
Setting.showMessage("error", `System info failed to get: ${error}`);
});
}, 1000 * 3);
}, 1000 * 2);
this.setState({intervalId: id});
}).catch(error => {
Setting.showMessage("error", `System info failed to get: ${error}`);