dankgrinder 8.77.0 → 8.78.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/grinder.js CHANGED
@@ -3060,7 +3060,7 @@ async function start(apiKey, apiUrl, opts = {}) {
3060
3060
 
3061
3061
  const memFinal = Math.round((process.memoryUsage?.rss?.() ?? process.memoryUsage().rss) / 1048576);
3062
3062
  const cpm = globalCmdRate.getRate().toFixed(1);
3063
- console.log(`${c.bold}Total:${c.reset} +⏣${finalCoins.toLocaleString()} in ${formatUptime()} | ${finalCmds}cmds | ~${cpm}cmd/m | ${memFinal}MB`);
3063
+ console.log(`${c.bold}Total:${c.reset} +⏣${finalCoins.toLocaleString()} in ${ui.formatUptime()} | ${finalCmds}cmds | ~${cpm}cmd/m | ${memFinal}MB`);
3064
3064
 
3065
3065
  // Stop workers immediately (don't wait) — instant shutdown
3066
3066
  for (const wk of workers) {
@@ -3084,7 +3084,7 @@ async function start(apiKey, apiUrl, opts = {}) {
3084
3084
  console.log(` ${c.dim}${totalRecoveries} recoveries, ${totalDisconnects} disconnects, ${totalRateLimits} rate-limits${c.reset}`);
3085
3085
  }
3086
3086
 
3087
- const webhookMsg = `+⏣ ${finalCoins.toLocaleString()} | ${finalCmds} cmds | ${formatUptime()}` +
3087
+ const webhookMsg = `+⏣ ${finalCoins.toLocaleString()} | ${finalCmds} cmds | ${ui.formatUptime()}` +
3088
3088
  (totalRecoveries > 0 ? ` | ${totalRecoveries} auto-recoveries` : '') +
3089
3089
  (CLUSTER_ENABLED ? ` | node: ${NODE_ID.substring(0, 12)}` : '');
3090
3090
  sendWebhook('Session Ended', webhookMsg, 0x8b5cf6).catch(() => {});
package/lib/ui.js CHANGED
@@ -223,4 +223,4 @@ function startRefresh() { if (!_refreshTimer) _refreshTimer = setInterval(() =>
223
223
  function stopRefresh() { if (_refreshTimer) { clearInterval(_refreshTimer); _refreshTimer = null; } }
224
224
  function stop() { _live = false; stopRefresh(); logUpdate.clear(); }
225
225
 
226
- module.exports = { init, drawBanner, start, draw, log, logGlobal, stop, setLive, setPhase, updateAccountRow, startRefresh, stopRefresh, addEvent };
226
+ module.exports = { init, drawBanner, start, draw, log, logGlobal, stop, setLive, setPhase, updateAccountRow, startRefresh, stopRefresh, addEvent, formatUptime: fmtUptime };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dankgrinder",
3
- "version": "8.77.0",
3
+ "version": "8.78.0",
4
4
  "description": "Dank Memer automation engine — grind coins while you sleep",
5
5
  "bin": {
6
6
  "dankgrinder": "bin/dankgrinder.js"