2 Commits

Author SHA1 Message Date
e98b1779e1 1.0.4 2021-08-13 11:55:38 +02:00
df5197fc8e fix(core): update 2021-08-13 11:55:38 +02:00
3 changed files with 5 additions and 4 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "@pushrocks/smartmetrics", "name": "@pushrocks/smartmetrics",
"version": "1.0.3", "version": "1.0.4",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@pushrocks/smartmetrics", "name": "@pushrocks/smartmetrics",
"version": "1.0.3", "version": "1.0.4",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@pushrocks/smartdelay": "^2.0.13", "@pushrocks/smartdelay": "^2.0.13",

View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/smartmetrics", "name": "@pushrocks/smartmetrics",
"version": "1.0.3", "version": "1.0.4",
"private": false, "private": false,
"description": "easy system metrics", "description": "easy system metrics",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",

View File

@ -26,7 +26,8 @@ export class SmartMetrics {
} }
this.started = true; this.started = true;
while (this.started) { while (this.started) {
this.logger.log('info', `sending heartbeat for ${this.sourceNameArg}`, { this.logger.log('info', `sending heartbeat for ${this.sourceNameArg} with metrics`, {
eventType: 'heartbeat',
metrics: await this.getMetrics(), metrics: await this.getMetrics(),
}); });
await plugins.smartdelay.delayFor(60000, null, true); await plugins.smartdelay.delayFor(60000, null, true);