mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Server fixes
This commit is contained in:
parent
78cc620dcb
commit
44778d52ea
6 changed files with 33 additions and 4 deletions
|
@ -517,12 +517,12 @@ function CreateMeshCentralServer(config, args) {
|
|||
var info = process.memoryUsage(), txt = [];
|
||||
info.time = Date.now();
|
||||
for (var i in info) { txt.push(i); }
|
||||
obj.fs.appendFile(obj.getConfigFilePath('memorytracking.txt'), txt.join(',') + '\r\n', function (err) { });
|
||||
obj.fs.appendFile(obj.getConfigFilePath('memorytracking.csv'), txt.join(',') + '\r\n', function (err) { });
|
||||
setInterval(function () {
|
||||
var info = process.memoryUsage(), txt = [];
|
||||
info.time = Date.now();
|
||||
for (var i in info) { txt.push(info[i]); }
|
||||
obj.fs.appendFile(obj.getConfigFilePath('memorytracking.txt'), txt.join(',') + '\r\n', function (err) { });
|
||||
obj.fs.appendFile(obj.getConfigFilePath('memorytracking.csv'), txt.join(',') + '\r\n', function (err) { });
|
||||
}, (obj.args.memorytracking * 1000));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue