~rbdr/monitorcito

de8c8f3614a51c69a8fee6a8553aad7166dae4a6 — Ruben Beltran del Rio a month ago 94abdf3
Use description instead of Id
1 files changed, 2 insertions(+), 2 deletions(-)

M lib/index.js
M lib/index.js => lib/index.js +2 -2
@@ 6,7 6,7 @@ const internals = {
  kFieldSeparator: '\n',
  kKeyValueSeparator: '=',
  kBlockSeparator: '\n\n',
  statusCommand: 'systemctl show --no-page -p Id -p ActiveState',
  statusCommand: 'systemctl show --no-page -p Description -p ActiveState',

  formatStatusOutput(systemctlText) {



@@ 29,7 29,7 @@ const internals = {

        return {
          ...statusObject,
          [service.Id]: service.ActiveState === internals.kActiveIndicator
          [service.Description]: service.ActiveState === internals.kActiveIndicator
        }
      }, {});
  },