mirror of
https://gitlab.com/manzerbredes/ina260-zmq-publisher.git
synced 2025-04-19 12:19:46 +00:00
Minor changes
This commit is contained in:
parent
5d7436ba49
commit
a6a3304fed
3 changed files with 5 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue