mattyb149 commented on a change in pull request #4240:
URL: https://github.com/apache/nifi/pull/4240#discussion_r417407238



##########
File path: 
nifi-nar-bundles/nifi-extension-utils/nifi-prometheus-utils/src/main/java/org/apache/nifi/prometheus/util/PrometheusMetricsUtil.java
##########
@@ -364,6 +370,10 @@ public static CollectorRegistry 
createConnectionStatusAnalyticsMetrics(Connectio
         return connectionAnalyticsMetricsRegistry.getRegistry();
     }
 
+    private static int getUtilization(final double used, final double total) {

Review comment:
       The Gauge value is a `double` so this will get turned back into a 
double, should we just keep the calculation as a double instead?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to