Added possibility to upgrade from GUI if there is enough RAM for SSL

This commit is contained in:
Gunnar Skjold
2021-11-18 20:42:13 +01:00
parent e78d59c31a
commit 6f09f523e4
2 changed files with 6 additions and 2 deletions

View File

@@ -253,7 +253,11 @@ var fetch = function() {
$('.ju').html(moment.duration(parseInt(json.u), 'seconds').humanize());
}
$('.jm').html((parseInt(json.m).toFixed(0)/1000).toFixed(1));
var kib = parseInt(json.m)/1000;
$('.jm').html(kib.toFixed(1));
if(kib > 32) {
$('.ssl-capable').removeClass('d-none');
}
setStatus("esp", json.em);
setStatus("han", json.hm);