adarmiento commented on a change in pull request #3700: NIFI-6638: Empty
multiple queues at once at different flow levels
URL: https://github.com/apache/nifi/pull/3700#discussion_r322242556
##########
File path:
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/nf-common.js
##########
@@ -1390,6 +1390,24 @@
return s;
},
+ /**
+ * Converts a number of bytes into a readable format e.g KB, MB, GB,
TB, YB
+ *
+ * @param {Int} bytes The number of bytes
+ * @returns {String}
+ */
+ toReadableBytes: function (bytes) {
+ var sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
+
+ if(bytes === 0) {
Review comment:
```suggestion
if (bytes === 0) {
```
----------------------------------------------------------------
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]
With regards,
Apache Git Services