diff --git a/packages/dashmate/src/commands/status/host.js b/packages/dashmate/src/commands/status/host.js index 6878a3ea953..d1e9cf50a0f 100644 --- a/packages/dashmate/src/commands/status/host.js +++ b/packages/dashmate/src/commands/status/host.js @@ -14,7 +14,7 @@ class HostStatusCommand extends ConfigBaseCommand { if (flags.format === OUTPUT_FORMATS.PLAIN) { const { hostname, uptime, platform, arch, - username, diskFree, memory, cpus, ip, + username, memory, cpus, ip, } = scope; const plain = { @@ -23,7 +23,6 @@ class HostStatusCommand extends ConfigBaseCommand { Platform: platform, Arch: arch, Username: username, - Diskfree: diskFree, Memory: memory, CPUs: cpus, IP: ip, diff --git a/packages/dashmate/src/commands/status/masternode.js b/packages/dashmate/src/commands/status/masternode.js index e109185ced8..257f6fe6ff6 100644 --- a/packages/dashmate/src/commands/status/masternode.js +++ b/packages/dashmate/src/commands/status/masternode.js @@ -7,6 +7,7 @@ const ConfigBaseCommand = require('../../oclif/command/ConfigBaseCommand'); const printObject = require('../../printers/printObject'); const colors = require('../../status/colors'); const MasternodeStateEnum = require('../../enums/masternodeState'); +const MasternodeSyncAssetEnum = require('../../enums/masternodeSyncAsset'); class MasternodeStatusCommand extends ConfigBaseCommand { /** @@ -35,14 +36,18 @@ class MasternodeStatusCommand extends ConfigBaseCommand { if (flags.format === OUTPUT_FORMATS.PLAIN) { const plain = {}; - plain['Masternode State'] = (scope.state === MasternodeStateEnum.READY - ? chalk.green : chalk.red)(scope.state); - if (scope.sentinel.version) { plain['Sentinel Version'] = scope.sentinel.version; plain['Sentinel Status'] = colors.sentinel(scope.sentinel.state)(scope.sentinel.state); } + if (scope.syncAsset === MasternodeSyncAssetEnum.MASTERNODE_SYNC_FINISHED) { + plain['Masternode State'] = (scope.state === MasternodeStateEnum.READY + ? chalk.green : chalk.red)(scope.state); + } else { + plain['Masternode Sync Status'] = chalk.yellow(scope.syncAsset); + } + if (scope.state === MasternodeStateEnum.READY) { const { lastPaidHeight, lastPaidTime,