Condensed functions for GetDataPoints to only use one.
Keep HandleGetLastData for now (for older clients).
This commit is contained in:
@@ -325,17 +325,17 @@ void Utils_PrintSingleDataPoint(uint64_t timestamp, double data, const char *val
|
||||
|
||||
ts=GWEN_Timestamp_fromLocalTime((time_t) timestamp);
|
||||
if (ts)
|
||||
fprintf(stdout, "%04d/%02d/%02d-%02d:%02d:%02d\t%lf\t%s\n",
|
||||
fprintf(stdout, "%04d/%02d/%02d-%02d:%02d:%02d\t%lf\t%s\t%lu\n",
|
||||
GWEN_Timestamp_GetYear(ts),
|
||||
GWEN_Timestamp_GetMonth(ts),
|
||||
GWEN_Timestamp_GetDay(ts),
|
||||
GWEN_Timestamp_GetHour(ts),
|
||||
GWEN_Timestamp_GetMinute(ts),
|
||||
GWEN_Timestamp_GetSecond(ts),
|
||||
data, valueUnits?valueUnits:"");
|
||||
data, valueUnits?valueUnits:"", (unsigned long) timestamp);
|
||||
else
|
||||
fprintf(stdout, "\t%lf\t%s\n",
|
||||
data, valueUnits?valueUnits:"");
|
||||
fprintf(stdout, "\t%lf\t%s\t%lu\n",
|
||||
data, valueUnits?valueUnits:"", (unsigned long) timestamp);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user