mirror of
https://gitlab.com/manzerbredes/ina260-zmq-publisher.git
synced 2025-04-06 11:56:26 +02:00
Update power unit
This commit is contained in:
parent
8c9b6ddbba
commit
55cf801ef5
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ int main(int argc, char *argv[]) {
|
||||||
"Too many measurements to publish. Please increase ZMQ_MSG_SIZE\n");
|
"Too many measurements to publish. Please increase ZMQ_MSG_SIZE\n");
|
||||||
} else {
|
} else {
|
||||||
sprintf(queues[queue_id].msg + queues[queue_id].size, "%ld,%ld,%f\n",
|
sprintf(queues[queue_id].msg + queues[queue_id].size, "%ld,%ld,%f\n",
|
||||||
power_ts.tv_sec, power_ts.tv_nsec, atof(buffer));
|
power_ts.tv_sec, power_ts.tv_nsec, atof(buffer)/1000.0); // Power is in mW so convert it to watt
|
||||||
queues[queue_id].size +=
|
queues[queue_id].size +=
|
||||||
strlen(queues[queue_id].msg + queues[queue_id].size);
|
strlen(queues[queue_id].msg + queues[queue_id].size);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue