logger: use non-scientific format for status output

This commit is contained in:
Beat Küng
2016-05-04 12:26:08 +02:00
committed by Lorenz Meier
parent 4edc0d9ea9
commit 8f5cb4084d
+3 -2
View File
@@ -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();
}