NetEq: Minor change to print-out format for interruption stats

Going back to a ratio in [0.0, 1.0] instead of a % number. Also changed
the format of the tag to match the others.

Bug: webrtc:10549
Change-Id: I03216718156843e345f8d0a76258a15f1a355fbe
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/135104
Reviewed-by: Ivo Creusen <ivoc@webrtc.org>
Commit-Queue: Henrik Lundin <henrik.lundin@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#27840}
This commit is contained in:
Henrik Lundin
2019-05-03 11:25:02 +02:00
committed by Commit Bot
parent 8d8ffdbcca
commit e360c09c86

View File

@ -82,8 +82,8 @@ void NetEqStatsPlotter::SimulationEnded(int64_t simulation_time_ms) {
printf(" num_interruptions: %d\n", lifetime_stats.interruption_count);
printf(" sum_interruption_length_ms: %d ms\n",
lifetime_stats.total_interruption_duration_ms);
printf(" interruption ratio: %f%%\n",
100.0 * lifetime_stats.total_interruption_duration_ms /
printf(" interruption_ratio: %f\n",
static_cast<double>(lifetime_stats.total_interruption_duration_ms) /
simulation_time_ms);
}
}