Skip to content

Commit 16689af

Browse files
committed
Change the location of unit suffix
1 parent a19bdf7 commit 16689af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nbresuse/static/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ define(['jquery', 'base/js/utils'], function ($, utils) {
1717
$.getJSON(utils.get_body_data('baseUrl') + 'metrics', function(data) {
1818
// FIXME: Proper setups for MB and GB. MB should have 0 things
1919
// after the ., but GB should have 2.
20-
var display = Math.round(data['rss'] / (1024 * 1024)) + " MB";
20+
var display = Math.round(data['rss'] / (1024 * 1024));
2121

2222
if (data['limits']['memory'] !== null) {
2323
display += " / " + (data['limits']['memory'] / (1024 * 1024));
2424
}
25-
$('#nbresuse-mem').text(display);
25+
$('#nbresuse-mem').text(display + ' MB');
2626
});
2727
}
2828

0 commit comments

Comments
 (0)