openbsd or not
This commit is contained in:
parent
5e86bd0a70
commit
a01d408bed
@ -39,8 +39,3 @@ $(BUILD_DIR):
|
||||
.phony: clean
|
||||
clean:
|
||||
-rm -rf $(BUILD_DIR)
|
||||
|
||||
.phony: show
|
||||
show:
|
||||
echo $(CFLAGS)
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user