openbsd or not

This commit is contained in:
Wolfgang Hottgenroth 2021-02-11 10:39:31 +01:00
parent c70e0fff75
commit 4b266e7c5e
2 changed files with 4 additions and 5 deletions

View File

@ -39,8 +39,3 @@ $(BUILD_DIR):
.phony: clean
clean:
-rm -rf $(BUILD_DIR)
.phony: show
show:
echo $(CFLAGS)

View File

@ -275,7 +275,11 @@ int forwardMinuteBuffer(t_forwarderHandle *handle, t_minuteBuffer *buf) {
char payload[256];
int res = snprintf(payload, sizeof(payload),
"%s,valid=1,location=%s,host=%s freq=%d.%03d"
#if OS = OpenBSD
" %llu"
#else
" %lu"
#endif
"",
handle->influxMeasurement, location, buf->s.deviceId,
frequency_before_point, frequency_behind_point,