Minor changes

This commit is contained in:
Loic Guegan 2023-07-17 18:41:23 +02:00
parent 5d7436ba49
commit a6a3304fed
3 changed files with 5 additions and 2 deletions

View file

@ -115,8 +115,6 @@ int main (int argc, char *argv [])
// Get power measurement timestamp:
clock_gettime(CLOCK_REALTIME,&power_ts);
char line[MAX_RECORD_LEN];
sprintf(line,"%ld,%ld,%d\n",power_ts.tv_sec,power_ts.tv_nsec,atoi(buffer));
int linelen=strlen(line);
if((queues[queue_id].size+MAX_RECORD_LEN)>ZMQ_MSG_SIZE){
printf("To many measurements to publish. Please increase ZMQ_MSG_SIZE\n");
} else {