Skip to content
Snippets Groups Projects
Commit 8f5cb408 authored by Beat Küng's avatar Beat Küng Committed by Lorenz Meier
Browse files

logger: use non-scientific format for status output

parent 4edc0d9e
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment