report correct interval amplification

Summary: as title

Test Plan: make release

Reviewers: sdong, yhchiang, igor

Reviewed By: igor

Subscribers: leveldb

Differential Revision: https://reviews.facebook.net/D19515
main
Lei Jin 11 years ago
parent 534357ca3a
commit 8a9cc7885c
  1. 4
      db/internal_stats.cc

@ -294,9 +294,9 @@ bool InternalStats::GetProperty(DBPropertyType property_type,
snprintf( snprintf(
buf, sizeof(buf), buf, sizeof(buf),
"Amplification interval: %.1f write, %.1f compaction\n", "Amplification interval: %.1f write, %.1f compaction\n",
(double)(interval_bytes_written + wal_bytes) / (double)(interval_bytes_written + interval_wal_bytes) /
(interval_bytes_new + 1), (interval_bytes_new + 1),
(double)(interval_bytes_written + interval_bytes_read + wal_bytes) / (double)(interval_bytes_written + interval_bytes_read + interval_wal_bytes) /
(interval_bytes_new + 1)); (interval_bytes_new + 1));
value->append(buf); value->append(buf);

Loading…
Cancel
Save