From fd2028f236c10f9caa580eedb3da357d529d76a2 Mon Sep 17 00:00:00 2001 From: Tiago Melo Date: Mon, 4 Nov 2019 15:18:27 -0100 Subject: [PATCH] mgr/dashboard: Display the aggregated number of request convertTimeSeries will now calculate the aggregated total number of client request made in the last seconds, instead of the number of request per second. Fixes: https://tracker.ceph.com/issues/42622 Signed-off-by: Tiago Melo (cherry picked from commit 1dc483e8d9699a57ef61ea77d4a54ce93b341b17) --- .../ceph/cephfs/cephfs-chart/cephfs-chart.component.spec.ts | 4 ++-- .../app/ceph/cephfs/cephfs-chart/cephfs-chart.component.ts | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.spec.ts index 97fdcef4eeaf..2e4c9c20799f 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.spec.ts @@ -58,11 +58,11 @@ describe('CephfsChartComponent', () => { }, { x: 10000, - y: 2 + y: 10 }, { x: 15000, - y: 5 + y: 25 } ]); }); diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.ts index 513f727d7d23..8d5a876da78f 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.ts @@ -185,13 +185,10 @@ export class CephfsChartComponent implements OnChanges, OnInit { const result = []; for (i = 1; i < sourceSeries.length; i++) { const cur = sourceSeries[i]; - const tdelta = cur[0] - prev[0]; - const vdelta = cur[1] - prev[1]; - const rate = vdelta / tdelta; result.push({ x: cur[0] * 1000, - y: rate + y: cur[1] - prev[1] }); prev = cur; -- 2.47.3