Browse Source

logger: use non-scientific format for status output

sbg
Beat Küng 9 years ago committed by Lorenz Meier
parent
commit
8f5cb4084d
  1. 5
      src/modules/logger/logger.cpp

5
src/modules/logger/logger.cpp

@ -574,8 +574,8 @@ void Logger::run() @@ -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) @@ -757,6 +757,7 @@ void Logger::write_info(const char *name, const char *value)
write_wait(buffer, msg_size);
}
_writer.unlock();
}

Loading…
Cancel
Save