diff --git a/sink/Makefile b/sink/Makefile index fdae671..ba92f62 100644 --- a/sink/Makefile +++ b/sink/Makefile @@ -39,8 +39,3 @@ $(BUILD_DIR): .phony: clean clean: -rm -rf $(BUILD_DIR) - -.phony: show -show: - echo $(CFLAGS) - diff --git a/sink/sink20169.c b/sink/sink20169.c index bcea580..9fb022b 100644 --- a/sink/sink20169.c +++ b/sink/sink20169.c @@ -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,