Skip to content

Instantly share code, notes, and snippets.

@theundefined
Created March 5, 2023 15:32
Show Gist options
  • Save theundefined/4e5fbc02e243c44d3e9b56718734752d to your computer and use it in GitHub Desktop.
Save theundefined/4e5fbc02e243c44d3e9b56718734752d to your computer and use it in GitHub Desktop.
--- bonnie++-2.00aubuntu2.old/zcav_io.cpp 2012-11-23 08:34:43.000000000 +0100
+++ bonnie++-2.00aubuntu2/zcav_io.cpp 2023-03-05 16:21:55.087172990 +0100
@@ -165,7 +165,7 @@
void ZcavRead::printavg(int position, double avg, int block_size)
{
- if(avg < 1.0)
+ if(avg < 0.1)
fprintf(m_log, "#%.2f ++++ %.3f\n", float(position) * float(block_size) / 1024.0, avg);
else
fprintf(m_log, "%.2f %.2f %.3f\n", float(position) * float(block_size) / 1024.0, double(block_size) / avg, avg);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment