check-eos-watchdoggiee
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -38,3 +38,3 @@ #!/usr/bin/env node | ||
} else { | ||
console.error("Please check your command line flags!".yellow); | ||
program.help(); | ||
} |
@@ -81,3 +81,9 @@ /* | ||
if (diff){ | ||
return callback(null, `REQTIME OK - ${diff}s difference|time_diff=${diff}\n`.cyan); | ||
let color = 'cyan'; | ||
let status = 'OK'; | ||
if (diff > options.time){ | ||
color = 'yellow'; | ||
status = 'WARNING' | ||
} | ||
return callback(null, `REQTIME ${status} - ${diff}s difference|time_diff=${diff}\n`[color]); | ||
} | ||
@@ -84,0 +90,0 @@ if (!diff && timeMAX < date){ |
{ | ||
"name": "check-eos-watchdoggiee", | ||
"description": "CLI for watchdoggiee contract", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "author": { |
6105
127