| Line 598... |
Line 598... |
| 598 |
< 1000)) { $("Options", xml).each(function getOptions(id) {>
|
598 |
< 1000)) { $("Options", xml).each(function getOptions(id) {>
|
| 599 |
< 1000)) { tempFormat = $(this).attr("tempFormat").toString().toLowerCase();>
|
599 |
< 1000)) { tempFormat = $(this).attr("tempFormat").toString().toLowerCase();>
|
| 600 |
< 1000)) { });>
|
600 |
< 1000)) { });>
|
| 601 |
< 1000)) {>
|
601 |
< 1000)) {>
|
| 602 |
< 1000)) { degree = parseFloat(degreeC);>
|
602 |
< 1000)) { degree = parseFloat(degreeC);>
|
| 603 |
< 1000)) { if (isNaN(degreeC)) {>
|
603 |
< 1000)) { if (!isFinite(degreeC)) {>
|
| 604 |
< 1000)) { return "---";>
|
604 |
< 1000)) { return "---";>
|
| 605 |
< 1000)) { } else {>
|
605 |
< 1000)) { } else {>
|
| 606 |
< 1000)) { switch (tempFormat) {>
|
606 |
< 1000)) { switch (tempFormat) {>
|
| 607 |
< 1000)) { case "f":>
|
607 |
< 1000)) { case "f":>
|
| 608 |
< 1000)) { return round((((9 * degree) / 5) + 32), 1) + " " + genlang(61);>
|
608 |
< 1000)) { return round((((9 * degree) / 5) + 32), 1) + " " + genlang(61);>
|
| Line 773... |
Line 773... |
| 773 |
< 1000)) { var cpucount = 0, html = ""; >
|
| 774 |
< 1000)) { $("Hardware CPU CpuCore", xml).each(function getCpuCore(cpuCoreId) { >
|
| 775 |
< 1000)) { var model = "", speed = 0, voltage = 0, bus = 0, cache = 0, bogo = 0, temp = 0, load = 0, speedmax = 0, speedmin = 0, cpucoreposition = 0, virt = "", manufacturer = ""; >
|
| 776 |
< 1000)) { cpucount++; >
|
| 777 |
< 1000)) { model = $(this).attr("Model"); >
|
| 778 |
< 1000)) { voltage = parseFloat($(this).attr("Voltage")); >
|
| 779 |
< 1000)) { speed = parseInt($(this).attr("CpuSpeed"), 10); >
|
| 780 |
< 1000)) { speedmax = parseInt($(this).attr("CpuSpeedMax"), 10); >
|
| 781 |
< 1000)) { speedmin = parseInt($(this).attr("CpuSpeedMin"), 10); >
|
| 782 |
< 1000)) { cache = parseInt($(this).attr("Cache"), 10); >
|
| 783 |
< 1000)) { virt = $(this).attr("Virt"); >
|
| Line 821... |
Line 821... |
| 821 |
< 1000)) { } >
|
| 822 |
< 1000)) { if (!isNaN(bus)) { >
|
| 823 |
< 1000)) { html += "<tr><td style=\"width:68%\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(14) + ":</span></div></td><td>" + formatHertz(bus) + "</td></tr>\n"; >
|
| 824 |
< 1000)) { tree.push(cpucoreposition); >
|
| 825 |
< 1000)) { } >
|
| 826 |
< 1000)) { if (isFinite(voltage)) { >
|
| 827 |
< 1000)) { html += "<tr><td style=\"width:68%\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(52) + ":</span></div></td><td>" + round(voltage, 2) + " " + genlang(82) + "</td></tr>\n"; >
|
| 828 |
< 1000)) { tree.push(cpucoreposition); >
|
| 829 |
< 1000)) { } >
|
| 830 |
< 1000)) { if (!isNaN(bogo)) { >
|
| 831 |
< 1000)) { html += "<tr><td style=\"width:68%\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(16) + ":</span></div></td><td>" + bogo.toString() + "</td></tr>\n"; >
|
| 832 |
< 1000)) { tree.push(cpucoreposition); >
|
| Line 901... |
Line 901... |
| 901 |
< 1000)) { } >
|
| 902 |
< 1000)) { if (!isNaN(speed)) { >
|
| 903 |
< 1000)) { html += "<tr><td style=\"width:68%\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(129) + ":</span></div></td><td>" + ((type=="MEM")?formatMTps(speed):formatBPS(1000000*speed)) + "</td></tr>\n"; >
|
| 904 |
< 1000)) { tree.push(devcoreposition); >
|
| 905 |
< 1000)) { } >
|
| 906 |
< 1000)) { if (isFinite(voltage)) { >
|
| 907 |
< 1000)) { html += "<tr><td style=\"width:68%\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(52) + ":</span></div></td><td>" + round(voltage, 2) + " " + genlang(82) + "</td></tr>\n"; >
|
| 908 |
< 1000)) { tree.push(devcoreposition); >
|
| 909 |
< 1000)) { } >
|
| 910 |
< 1000)) { if (serial !== undefined) { >
|
| 911 |
< 1000)) { html += "<tr><td style=\"width:68%\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(124) + ":</span></div></td><td>" + serial + "</td></tr>\n"; >
|
| 912 |
< 1000)) { tree.push(devcoreposition); >
|
| Line 1029... |
Line 1029... |
| 1029 |
< 1000)) { timestamp = $(this).attr("timestamp"); >
|
| 1030 |
< 1000)) { }); >
|
| 1031 |
< 1000)) { } >
|
| 1032 |
< 1000)) {>
|
| 1033 |
< 1000)) { $("Network NetDevice", xml).each(function getDevice(id) { >
|
| 1034 |
< 1000)) { ', htmltx = ''; >
|
1034 |
< 1000)) { ', htmltx = '', rxr = 0, txr = 0; >
|
| 1035 |
< 1000)) { name = $(this).attr("Name"); >
|
| 1036 |
< 1000)) { rx = parseInt($(this).attr("RxBytes"), 10); >
|
| 1037 |
< 1000)) { tx = parseInt($(this).attr("TxBytes"), 10); >
|
| 1038 |
< 1000)) { er = parseInt($(this).attr("Err"), 10); >
|
| 1039 |
< 1000)) { dr = parseInt($(this).attr("Drops"), 10); >
|
| - |
|
1040 |
< 1000)) { txr = parseInt($(this).attr("TxRate"), 10); >
|
| 1040 |
< 1000)) {>
|
| 1041 |
< 1000)) { if (showNetworkActiveSpeed) { >
|
| 1042 |
< 1000)) { if ((rx == 0) && !isNaN(rxr)) { >
|
| 1043 |
< 1000)) { if (showNetworkActiveSpeed == 2) { >
|
1045 |
< 1000)) { htmlrx ="<br><i>("+formatBPS(round(8*diff/difftime, 2))+")</i>"; >
|
1046 |
< 1000)) { } else { >
|
1047 |
< 1000)) { htmlrx ="<br><i>("+formatBytes(round(rxr, 2), xml)+"/s)</i>"; >
|
| - |
|
1049 |
< 1000)) { } else if ($.inArray(name, oldnetwork) >= 0) { >
|
| - |
|
1051 |
< 1000)) { if (((diff = rx - oldnetwork[name].rx) > 0) && ((difftime = timestamp - oldnetwork[name].timestamp) > 0)) { >
|
| - |
|
1053 |
< 1000)) { htmlrx ="<br><i>("+formatBPS(round(8*diff/difftime, 2))+")</i>"; >
|
| - |
|
1055 |
< 1000)) { htmlrx ="<br><i>("+formatBytes(round(diff/difftime, 2), xml)+"/s)</i>"; >
|
1056 |
< 1000)) { } >
|
| 1048 |
< 1000)) { } >
|
| 1049 |
< 1000)) { } >
|
| 1050 |
< 1000)) { if ((tx == 0) && !isNaN(txr)) { >
|
| 1051 |
< 1000)) { if (showNetworkActiveSpeed == 2) { >
|
| 1052 |
< 1000)) { htmltx ="<br><i>("+formatBPS(round(txr, 2))+")</i>"; >
|
| 1053 |
< 1000)) { } else { >
|
| - |
|
1064 |
< 1000)) { } >
|
| - |
|
1066 |
< 1000)) { if (((diff = tx - oldnetwork[name].tx) > 0) && (difftime > 0)) { >
|
| - |
|
1068 |
< 1000)) { htmltx ="<br><i>("+formatBPS(round(8*diff/difftime, 2))+")</i>"; >
|
| - |
|
1070 |
< 1000)) { htmltx ="<br><i>("+formatBytes(round(diff/difftime, 2), xml)+"/s)</i>"; >
|
1071 |
< 1000)) { } >
|
| 1055 |
< 1000)) { } >
|
| 1056 |
< 1000)) { } >
|
| 1057 |
< 1000)) { } >
|
| 1058 |
< 1000)) {>
|
| 1059 |
< 1000)) { html +="<tr><td><div class=\"treediv\"><span class=\"treespan\">" + name + "</span></div></td><td class=\"right\">" + formatBytes(rx, xml) + htmlrx + "</td><td class=\"right\">" + formatBytes(tx, xml) + htmltx +"</td><td class=\"right\">" + er.toString() + "/<wbr>" + dr.toString() + "</td></tr>"; >
|
| Line 1389... |
Line 1407... |
| 1389 |
< 1000)) { if (isFinite(max)) >
|
| 1390 |
< 1000)) { _max = round(max, 2) + " " + genlang(62); >
|
| 1391 |
< 1000)) { min = parseFloat($(this).attr("Min")); >
|
| 1392 |
< 1000)) { if (isFinite(min)) >
|
| 1393 |
< 1000)) { _min = round(min, 2) + " " + genlang(62); >
|
| - |
|
1412 |
< 1000)) { $("#voltageTable tbody").append("<tr><td>" + label + "</td><td class=\"right\">" + round(value, 2) + " " + genlang(62) + "</td><td class=\"right\">" + _min + "</td><td class=\"right\">" + _max + "</td></tr>"); >
|
1413 |
< 1000)) { else >
|
| - |
|
1415 |
< 1000)) { values = true; >
|
1416 |
< 1000)) { }); >
|
1417 |
< 1000)) { if (values) { >
|
1418 |
< 1000)) { $("#voltage").show(); >
|
1419 |
< 1000)) { } else { >
|
1420 |
< 1000)) { min = parseFloat($(this).attr("Min")); >
|
1446 |
< 1000)) { unit = $(this).attr("Unit"); >
|
1447 |
< 1000)) { if (unit === "%") { >
|
1448 |
< 1000)) { if (isFinite(min)) >
|
1449 |
< 1000)) { _min = round(min,0) + "%"; >
|
1450 |
< 1000)) { if (isFinite(value)) >
|
| 1430 |
< 1000)) { $("#fansTable tbody").append("<tr><td>" + label + "</td><td>" + createBar(round(value,0)) + "</td><td class=\"right\">" + _min + "</td></tr>"); >
|
| - |
|
1453 |
< 1000)) { $("#fansTable tbody").append("<tr><td>" + label + "</td><td>---%</td><td class=\"right\">" + _min + "</td></tr>"); >
|
| 1431 |
< 1000)) { } else { >
|
| 1432 |
< 1000)) { if (isFinite(min)) >
|
| 1433 |
< 1000)) { _min = round(min,0) + " " + genlang(63); >
|
| - |
|
1458 |
< 1000)) { $("#fansTable tbody").append("<tr><td>" + label + "</td><td class=\"right\">" + round(value,0) + " " + genlang(63) + "</td><td class=\"right\">" + _min + "</td></tr>"); >
|
1459 |
< 1000)) { else >
|
| - |
|
1461 |
< 1000)) { } >
|
1462 |
< 1000)) { values = true; >
|
1463 |
< 1000)) { }); >
|
1464 |
< 1000)) { if (values) { >
|
1465 |
< 1000)) { $("#fans").show(); >
|
1466 |
< 1000)) { var values = false; >
|
1484 |
< 1000)) { $("#powerTable tbody").empty(); >
|
1485 |
< 1000)) { $("MBInfo Power Item", xml).each(function getPowers(id) { >
|
1486 |
< 1000)) { var label = "", value = "", event = "", limit = 0, _limit = ""; >
|
1487 |
< 1000)) { label = $(this).attr("Label"); >
|
1488 |
< 1000)) { value = $(this).attr("Value"); >
|
1489 |
< 1000)) { event = $(this).attr("Event"); >
|
1490 |
< 1000)) { if (event !== undefined) >
|
1491 |
< 1000)) { label += " <img style=\"vertical-align: middle; width:16px;\" src=\"./gfx/attention.gif\" alt=\"!\" title=\""+event+"\"/>"; >
|
1492 |
< 1000)) { limit = parseFloat($(this).attr("Max")); >
|
1493 |
< 1000)) { if (isFinite(limit)) >
|
1494 |
< 1000)) { _limit = round(limit, 2) + " " + genlang(103); >
|
1495 |
< 1000)) { if (isFinite(value)) >
|
| 1469 |
< 1000)) { $("#powerTable tbody").append("<tr><td>" + label + "</td><td class=\"right\">" + round(value, 2) + " " + genlang(103) + "</td><td class=\"right\">" + _limit + "</td></tr>"); >
|
| - |
|
1498 |
< 1000)) { $("#powerTable tbody").append("<tr><td>" + label + "</td><td class=\"right\">--- " + genlang(103) + "</td><td class=\"right\">" + _limit + "</td></tr>"); >
|
| 1470 |
< 1000)) { values = true; >
|
| 1471 |
< 1000)) { }); >
|
| 1472 |
< 1000)) { if (values) { >
|
| 1473 |
< 1000)) { $("#power").show(); >
|
| 1474 |
< 1000)) { } else { >
|
| Line 1491... |
Line 1521... |
| 1491 |
< 1000)) { var values = false; >
|
| 1492 |
< 1000)) { $("#currentTable tbody").empty(); >
|
| 1493 |
< 1000)) { $("MBInfo Current Item", xml).each(function getCurrents(id) { >
|
| 1494 |
< 1000)) { var label = "", value = "", event = "", min = 0, max = 0, _min = "", _max = ""; >
|
| 1495 |
< 1000)) { label = $(this).attr("Label"); >
|
| 1496 |
< 1000)) { value = parseFloat($(this).attr("Value")); >
|
| 1497 |
< 1000)) { event = $(this).attr("Event"); >
|
| 1498 |
< 1000)) { if (event !== undefined) >
|
| 1499 |
< 1000)) { label += " <img style=\"vertical-align: middle; width:16px;\" src=\"./gfx/attention.gif\" alt=\"!\" title=\""+event+"\"/>"; >
|
| 1500 |
< 1000)) { max = parseFloat($(this).attr("Max")); >
|
| 1501 |
< 1000)) { if (isFinite(max)) >
|
| 1502 |
< 1000)) { _max = round(max, 2) + " " + genlang(106); >
|
| 1503 |
< 1000)) { min = parseFloat($(this).attr("Min")); >
|
| 1504 |
< 1000)) { if (isFinite(min)) >
|
| 1505 |
< 1000)) { _min = round(min, 2) + " " + genlang(106); >
|
| - |
|
1536 |
< 1000)) { $("#currentTable tbody").append("<tr><td>" + label + "</td><td class=\"right\">" + round(value, 2) + " " + genlang(106) + "</td><td class=\"right\">" + _min + "</td><td class=\"right\">" + _max + "</td></tr>"); >
|
1537 |
< 1000)) { else >
|
| - |
|
1539 |
< 1000)) { values = true; >
|
1540 |
< 1000)) { }); >
|
1541 |
< 1000)) { if (values) { >
|
1542 |
< 1000)) { $("#current").show(); >
|
1543 |
< 1000)) { } else { >
|
1544 |
< 1000)) {
|