From: Tiago Melo Date: Mon, 4 Nov 2019 16:18:27 +0000 (-0100) Subject: mgr/dashboard: Display the aggregated number of request X-Git-Tag: v14.2.10~32^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fd2028f236c10f9caa580eedb3da357d529d76a2;p=ceph.git 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) --- 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;