Browse Source

Fix : Use process.memoryUsage() in /_health.

pull/22/head
o1lab 7 years ago
parent
commit
7749cf8fde
  1. 2
      lib/xapi.js

2
lib/xapi.js

@ -400,7 +400,7 @@ class Xapi {
status['mysql_uptime'] = await this.getMysqlUptime();
if (Object.keys(req.query).length) {
status['process_memory_usage'] = process.memoryUsage;
status['process_memory_usage'] = process.memoryUsage();
status['os_total_memory'] = os.totalmem();
status['os_free_memory'] = os.freemem();
status['os_load_average'] = os.loadavg();

Loading…
Cancel
Save