adjust 1s store period
This commit is contained in:
@ -159,7 +159,7 @@ void influxAddFrequency(uint32_t period, double fRaw, double fSmoothed, double g
|
||||
tt);
|
||||
|
||||
//if ((influxBuffers[PERIOD_1S]->nextEntry + c + 10) > (influxBuffers[PERIOD_1S]->buffer + BUFSIZE)) {
|
||||
if (influxBuffers[PERIOD_1S]->entries == 10) {
|
||||
if (influxBuffers[PERIOD_1S]->entries == 30) {
|
||||
influxSendRequest(influxBuffers[PERIOD_1S]);
|
||||
influxBuffers[PERIOD_1S]->totalEntries += influxBuffers[PERIOD_1S]->entries;
|
||||
logmsg(LOG_INFO, "%u 1s-entries sent to database, in total %u\n",
|
||||
|
Reference in New Issue
Block a user