From fa2844a20b40990804458bfd38706aa39b045ecb Mon Sep 17 00:00:00 2001 From: joekokker <59933882+joekokker@users.noreply.github.com> Date: Sat, 30 May 2020 13:03:51 +0200 Subject: [PATCH] Read "measurement" value from config file Overwrite preset influx measurement name with the one from the config file. This restores expected behavior. --- src/Command/InfluxCommand.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Command/InfluxCommand.php b/src/Command/InfluxCommand.php index 1b36c79..ff3170d 100644 --- a/src/Command/InfluxCommand.php +++ b/src/Command/InfluxCommand.php @@ -121,11 +121,9 @@ protected function fetchEntities(array $filters): array { } protected function influxLastTimestamp(array $entity): float { - $iql = <<getConfig('influx.measurement') + ); $res = $this->influxQuery(sprintf($iql, $entity['uuid'])); $timestamp = count($res) ? $res[0]['time'] : 0;