]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: The performance 'Client Read/Write' widget shows incorrect write values 38189/head
authorVolker Theile <vtheile@suse.com>
Thu, 19 Nov 2020 15:27:24 +0000 (16:27 +0100)
committerVolker Theile <vtheile@suse.com>
Thu, 19 Nov 2020 15:28:05 +0000 (16:28 +0100)
Fixes: https://tracker.ceph.com/issues/48295
Signed-off-by: Volker Theile <vtheile@suse.com>
(cherry picked from commit d66e684b9ec83cca8a58b0a7b8661c568eb0cf6d)

Conflicts:
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health-pie/health-pie.component.scss
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health/health.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health/health.component.ts
src/pybind/mgr/dashboard/frontend/src/styles/defaults/_bootstrap-defaults.scss
Discarded all changes except the relevant code part. The rest was sucessfully backported by b2360b1a6101b5cc61c236047ce7c757fd02c93d.

src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health/health.component.ts

index 11c048374dedb527bdc303f58b3f9eaa51a0a426..f58dbb1390a3706293056b959e7e5709daf4a8ae 100644 (file)
@@ -95,7 +95,11 @@ export class HealthComponent implements OnInit, OnDestroy {
       )} ${this.i18n(`/s`)}`
     );
     ratioData.push(this.healthData.client_perf.read_op_per_sec);
-    ratioLabels.push(this.healthData.client_perf.write_op_per_sec);
+    ratioLabels.push(
+      `${this.i18n(`Writes`)}: ${this.dimless.transform(
+        this.healthData.client_perf.write_op_per_sec
+      )} ${this.i18n(`/s`)}`
+    );
     ratioData.push(this.calcPercentage(this.healthData.client_perf.write_op_per_sec, total));
 
     chart.labels = ratioLabels;