From 86af7dd16e6966b475b267da8212845147be6867 Mon Sep 17 00:00:00 2001 From: r00t Date: Fri, 5 Jan 2024 22:40:37 +0100 Subject: [PATCH] formatting and comment fixes, fixup previous commit(s) --- include/api/InfluxDB.hpp | 5 ++--- src/api/InfluxDB.cpp | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/include/api/InfluxDB.hpp b/include/api/InfluxDB.hpp index 34d134d2..2cc64120 100644 --- a/include/api/InfluxDB.hpp +++ b/include/api/InfluxDB.hpp @@ -72,9 +72,8 @@ class InfluxDB : public ApiIF { std::list _values; CurlResponse::Ptr _response; - // Volatile - int64_t _last_timestamp; /**< remember last timestamp */ - // duplicate support: + int64_t _last_timestamp; /* remember last timestamp */ + // duplicates support: Reading *_lastReadingSent; typedef struct { diff --git a/src/api/InfluxDB.cpp b/src/api/InfluxDB.cpp index c9f4cfa8..1864e186 100644 --- a/src/api/InfluxDB.cpp +++ b/src/api/InfluxDB.cpp @@ -299,8 +299,8 @@ void vz::api::InfluxDB::send() { it->time_ms(), it->value()); print(log_debug, "compare: %lld %lld", channel()->name(), _last_timestamp, timestamp); - // we can only add/consider a timestamp if the ms resolution is not before than from - // previous one: + // we can only add/consider a timestamp if the ms resolution is not before than from previous + // one: if (_last_timestamp <= timestamp) { if (0 == duplicates) { // send all values sendData = true;