aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/webui/static
diff options
context:
space:
mode:
Diffstat (limited to 'fg21sim/webui/static')
-rw-r--r--fg21sim/webui/static/js/products.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/fg21sim/webui/static/js/products.js b/fg21sim/webui/static/js/products.js
index dcd2aef..f2507bf 100644
--- a/fg21sim/webui/static/js/products.js
+++ b/fg21sim/webui/static/js/products.js
@@ -274,14 +274,15 @@ $(document).ready(function () {
title: ("Product: " + product.data("compID") + " @ " +
product.data("frequency") + " (#" + product.data("freqID") + ")"),
contents: [
- ("<strong>HEALPix map:</strong> " + product.data("path") + ", size: " +
- product.data("size") + " bytes, MD5: " + product.data("md5"))
+ ("<strong>HEALPix map:</strong> " + product.data("path") +
+ ", size: " + (product.data("size")/1024/1024).toFixed(1) +
+ " MB, MD5: " + product.data("md5"))
]
};
if (product.data("hpx-image")) {
var p = ("HPX image: " + product.data("hpx-path") + ", size: " +
- product.data("hpx-size") + "bytes, MD5: " +
- product.data("hpx-md5"));
+ (product.data("hpx-size")/1024/1024).toFixed(1) +
+ " MB, MD5: " + product.data("hpx-md5"));
modalData.contents.push(p);
}
showModalProducts(modalData);