Просмотр исходного кода

Fix get metrics for only one pod

jnfrati 4 лет назад
Родитель
Сommit
075d90f990

+ 1 - 1
dashboard/src/main/home/cluster-dashboard/expanded-chart/metrics/MetricsSection.tsx

@@ -259,7 +259,7 @@ const MetricsSection: React.FunctionComponent<PropsType> = ({
     }
 
     const kind = selectedMetric;
-    let shouldsum = true;
+    let shouldsum = selectedPod === "All";
     let namespace = currentChart.namespace;
 
     // calculate start and end range