Skip to content

Commit

Permalink
formatting and comment fixes, fixup previous commit(s)
Browse files Browse the repository at this point in the history
  • Loading branch information
r00t- committed Jan 5, 2024
1 parent 1227ea6 commit 86af7dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions include/api/InfluxDB.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,8 @@ class InfluxDB : public ApiIF {
std::list<Reading> _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 {
Expand Down
4 changes: 2 additions & 2 deletions src/api/InfluxDB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 86af7dd

Please sign in to comment.