mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 06:47:35 +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) {
|
||||
alloc_info = mallinfo();
|
||||
double throughput = total_bytes / deltat;
|
||||
PX4_INFO("%8.1e Kbytes/sec, %zu highWater, %d dropouts, %5.3f sec max, free heap: %d",
|
||||
throughput / 1e3, highWater, dropout_count, max_drop_len, alloc_info.fordblks);
|
||||
PX4_INFO("%8.1lf KB/s, %zu highWater, %d dropouts, %5.3f sec max, free heap: %d",
|
||||
throughput / 1.e3, highWater, dropout_count, max_drop_len, alloc_info.fordblks);
|
||||
|
||||
total_bytes = 0;
|
||||
highWater = 0,
|
||||
@@ -757,6 +757,7 @@ void Logger::write_info(const char *name, const char *value)
|
||||
|
||||
write_wait(buffer, msg_size);
|
||||
}
|
||||
|
||||
_writer.unlock();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user