openbsd or not
This commit is contained in:
parent
c70e0fff75
commit
4b266e7c5e
@ -39,8 +39,3 @@ $(BUILD_DIR):
|
|||||||
.phony: clean
|
.phony: clean
|
||||||
clean:
|
clean:
|
||||||
-rm -rf $(BUILD_DIR)
|
-rm -rf $(BUILD_DIR)
|
||||||
|
|
||||||
.phony: show
|
|
||||||
show:
|
|
||||||
echo $(CFLAGS)
|
|
||||||
|
|
||||||
|
@ -275,7 +275,11 @@ int forwardMinuteBuffer(t_forwarderHandle *handle, t_minuteBuffer *buf) {
|
|||||||
char payload[256];
|
char payload[256];
|
||||||
int res = snprintf(payload, sizeof(payload),
|
int res = snprintf(payload, sizeof(payload),
|
||||||
"%s,valid=1,location=%s,host=%s freq=%d.%03d"
|
"%s,valid=1,location=%s,host=%s freq=%d.%03d"
|
||||||
|
#if OS = OpenBSD
|
||||||
" %llu"
|
" %llu"
|
||||||
|
#else
|
||||||
|
" %lu"
|
||||||
|
#endif
|
||||||
"",
|
"",
|
||||||
handle->influxMeasurement, location, buf->s.deviceId,
|
handle->influxMeasurement, location, buf->s.deviceId,
|
||||||
frequency_before_point, frequency_behind_point,
|
frequency_before_point, frequency_behind_point,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user