This is an automated email from the ASF dual-hosted git repository.

hong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git

commit 3dedc1aa343cb48b0550073f155d93ffc08ad9ab
Author: Luke Chen <show...@gmail.com>
AuthorDate: Thu Jun 20 17:43:01 2024 +0800

    FLINK-35657: use parseFloat for metric value
---
 flink-runtime-web/web-dashboard/src/app/services/metrics.service.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/flink-runtime-web/web-dashboard/src/app/services/metrics.service.ts 
b/flink-runtime-web/web-dashboard/src/app/services/metrics.service.ts
index cddefea45f3..75e1329ef48 100644
--- a/flink-runtime-web/web-dashboard/src/app/services/metrics.service.ts
+++ b/flink-runtime-web/web-dashboard/src/app/services/metrics.service.ts
@@ -67,7 +67,7 @@ export class MetricsService {
         map(arr => {
           const result: MetricMap = {};
           arr.forEach(item => {
-            result[item.id] = parseInt(item.value, 10);
+            result[item.id] = parseFloat(item.value);
           });
           return {
             timestamp: Date.now(),

Reply via email to