50 periods
This commit is contained in:
@ -24,7 +24,7 @@ const char DEFAULT_LOCATION[] = "Essen_DE";
|
|||||||
const char LOCATION_KEY[] = "location";
|
const char LOCATION_KEY[] = "location";
|
||||||
const char *location;
|
const char *location;
|
||||||
|
|
||||||
const uint8_t ONE_SECOND_DIVIDER = 50;
|
const uint32_t ONE_SECOND_DIVIDER = 50;
|
||||||
|
|
||||||
|
|
||||||
extern uint32_t skipped;
|
extern uint32_t skipped;
|
||||||
@ -118,7 +118,7 @@ static void influxSendRequest(tInfluxBuffer *influxBuffer) {
|
|||||||
|
|
||||||
void influxAddFrequency(uint32_t period, double fRaw, double fSmoothed, double gradient,
|
void influxAddFrequency(uint32_t period, double fRaw, double fSmoothed, double gradient,
|
||||||
int valid) {
|
int valid) {
|
||||||
static uint8_t divider = 0;
|
static uint32_t divider = 0;
|
||||||
static uint32_t summedUpTime = 0;
|
static uint32_t summedUpTime = 0;
|
||||||
char tmpBuf[256];
|
char tmpBuf[256];
|
||||||
struct timespec t;
|
struct timespec t;
|
||||||
|
Reference in New Issue
Block a user