diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b92b71..c731717 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ ### 1.1.2 + [x] Fixed memory leaks for setTimeout circular links + ++ [x] Server: added `process.memory` to get mem request ### 1.1.1 + [x] Server: improved alerts for `FORK` states diff --git a/server/monitor.mjs b/server/monitor.mjs index 3f2f096..0c00b5b 100644 --- a/server/monitor.mjs +++ b/server/monitor.mjs @@ -7,7 +7,7 @@ import http from "http" import https from "https" import {sysInfo} from "./system.mjs" import {processCollectNodeInfo} from "./node.mjs" -import {getBlocks, getExplorerSummary, processExplorer, processWinningBlocks} from "./explorer.mjs" +import {getBlocks, processExplorer, processWinningBlocks} from "./explorer.mjs" import {processAlerter} from "./alerter.mjs" import {processBalanceSend} from "./balance-sender.mjs" import {processHello} from "./hello.mjs" diff --git a/server/system.mjs b/server/system.mjs index 368df61..9ff537f 100644 --- a/server/system.mjs +++ b/server/system.mjs @@ -9,7 +9,8 @@ const getMem = () => { return { total, free, - used: total - free + used: total - free, + process: process.memoryUsage() } } diff --git a/server/uptime.mjs b/server/uptime.mjs index e2237d8..3b0e168 100644 --- a/server/uptime.mjs +++ b/server/uptime.mjs @@ -2,7 +2,7 @@ import fetch from "node-fetch" export const getUptime = async (key) => { if (!key) return null - const link = `https://minastake.com/utils/uptime.php?publicKey=${key}` + const link = `https://minastake.com/uptime/uptime.php?publicKey=${key}` const data = await fetch(link) return data.ok ? data.json() : null }