mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 02:36:37 +08:00
logger: use non-scientific format for status output
This commit is contained in:
@@ -574,8 +574,8 @@ void Logger::run()
|
|||||||
if (deltat > 4.0) {
|
if (deltat > 4.0) {
|
||||||
alloc_info = mallinfo();
|
alloc_info = mallinfo();
|
||||||
double throughput = total_bytes / deltat;
|
double throughput = total_bytes / deltat;
|
||||||
PX4_INFO("%8.1e Kbytes/sec, %zu highWater, %d dropouts, %5.3f sec max, free heap: %d",
|
PX4_INFO("%8.1lf KB/s, %zu highWater, %d dropouts, %5.3f sec max, free heap: %d",
|
||||||
throughput / 1e3, highWater, dropout_count, max_drop_len, alloc_info.fordblks);
|
throughput / 1.e3, highWater, dropout_count, max_drop_len, alloc_info.fordblks);
|
||||||
|
|
||||||
total_bytes = 0;
|
total_bytes = 0;
|
||||||
highWater = 0,
|
highWater = 0,
|
||||||
@@ -757,6 +757,7 @@ void Logger::write_info(const char *name, const char *value)
|
|||||||
|
|
||||||
write_wait(buffer, msg_size);
|
write_wait(buffer, msg_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
_writer.unlock();
|
_writer.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user