]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Display the aggregated number of request 31369/head
authorTiago Melo <tmelo@suse.com>
Mon, 4 Nov 2019 16:18:27 +0000 (15:18 -0100)
committerTiago Melo <tmelo@suse.com>
Mon, 4 Nov 2019 16:29:46 +0000 (15:29 -0100)
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 <tmelo@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.ts

index 786076125a0ba720dc5f5d4e18247b4c6702816a..cbc11dfbd47ed1e6e500694204bfa31fdfbae708 100644 (file)
@@ -62,11 +62,11 @@ describe('CephfsChartComponent', () => {
       },
       {
         x: 10000,
-        y: 2
+        y: 10
       },
       {
         x: 15000,
-        y: 5
+        y: 25
       }
     ]);
   });
index b7809c4c72c543e27c608fb3a431942cf5310f59..a5e83071b517b0397fbd8c8f6791541d290eaf55 100644 (file)
@@ -177,13 +177,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;