1 function format_mem_size(s) {
2 var mo_bytes = 1024 * 1024;
3 var go_bytes = 1024 * mo_bytes;
6 var k = Math.round((s / 1024) % 1024);
7 var m = Math.round((s / (1024*1024)) % 1024);
8 var g = Math.round(s / (1024*1024*1024));
25 function type_to_str(stype) {
26 var stype_str = "N/A";
30 } else if (stype & 0x0200) {
32 } else if (stype & 0x0400) {
34 } else if (stype & 0x1000) {
39 stype_str += " Temperature";
40 } else if (stype & 0x0002) {
47 function type_to_unit(stype) {
50 } else if (stype & 0x0002) {