stats: Fix Other calculation.

In commit 2248d4d9a4 (#13883) I
incorrectly migrated a loop.  Fixes #14052.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg
2020-03-02 15:24:25 -08:00
committed by Tim Abbott
parent 62a7e464fb
commit eee784312d

View File

@@ -362,7 +362,7 @@ function compute_summary_chart_data(time_series_data, num_steps, labels_) {
});
if (data.size !== 0) {
labels[labels.length - 1] = "Other";
for (const sum of data) {
for (const sum of data.values()) {
values[labels.length - 1] += sum;
}
}