Subversion Repositories ALCASAR

Rev

Rev 3037 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 3037 Rev 3100
Line 659... Line 659...
659
                return processes;
659
                return processes;
660
            }
660
            }
661
        }
661
        }
662
    };
662
    };
663
 
663
 
-
 
664
    if ((data.Vitals["@attributes"].LoadAvg === '') && (data.Vitals["@attributes"].CPULoad === undefined)) {
-
 
665
        $("#tr_LoadAvg").hide();
-
 
666
    }
664
    if (data.Vitals["@attributes"].SysLang === undefined) {
667
    if (data.Vitals["@attributes"].SysLang === undefined) {
665
        $("#tr_SysLang").hide();
668
        $("#tr_SysLang").hide();
666
    }
669
    }
667
    if (data.Vitals["@attributes"].CodePage === undefined) {
670
    if (data.Vitals["@attributes"].CodePage === undefined) {
668
        $("#tr_CodePage").hide();
671
        $("#tr_CodePage").hide();
Line 723... Line 726...
723
                return formatTemp(this.Cputemp, data.Options["@attributes"].tempFormat);
726
                return formatTemp(this.Cputemp, data.Options["@attributes"].tempFormat);
724
            }
727
            }
725
        },
728
        },
726
        Voltage: {
729
        Voltage: {
727
            html: function() {
730
            html: function() {
728
                return round(this.Voltage, 2) + ' V';
731
                return round(this.Voltage, 2) + genlang(82); //V
729
            }
732
            }
730
        },
733
        },
731
        Bogomips: {
734
        Bogomips: {
732
            text: function () {
735
            text: function () {
733
                return parseInt(this.Bogomips, 10);
736
                return parseInt(this.Bogomips, 10);
Line 765... Line 768...
765
                return formatMTps(this.Speed);
768
                return formatMTps(this.Speed);
766
            }
769
            }
767
        },
770
        },
768
        Voltage: {
771
        Voltage: {
769
            html: function() {
772
            html: function() {
770
                return round(this.Voltage, 2) + ' V';
773
                return round(this.Voltage, 2)  + genlang(82); //V
771
            }
774
            }
772
        },
775
        },
773
        Capacity: {
776
        Capacity: {
774
            html: function () {
777
            html: function () {
775
                return formatBytes(this.Capacity, data.Options["@attributes"].byteFormat);
778
                return formatBytes(this.Capacity, data.Options["@attributes"].byteFormat);
Line 1024... Line 1027...
1024
                    }
1027
                    }
1025
                    html += '</div>';
1028
                    html += '</div>';
1026
                    html += '<div class="percent">' + 'Total: ' + this["@attributes"].Percent + '% ' + '<i>(';
1029
                    html += '<div class="percent">' + 'Total: ' + this["@attributes"].Percent + '% ' + '<i>(';
1027
                    var not_first = false;
1030
                    var not_first = false;
1028
                    if (this.Details["@attributes"].AppPercent !== undefined) {
1031
                    if (this.Details["@attributes"].AppPercent !== undefined) {
1029
                        html += genlang(64) + ': '+ this.Details["@attributes"].AppPercent + '%'; //Kernel + apps
1032
                        html += '<span class="progress-bar-info">&emsp;</span>&nbsp;' + genlang(64) + ': '+ this.Details["@attributes"].AppPercent + '%'; //Kernel + apps
1030
                        not_first = true;
1033
                        not_first = true;
1031
                    }
1034
                    }
1032
                    if (this.Details["@attributes"].CachedPercent !== undefined) {
1035
                    if (this.Details["@attributes"].CachedPercent !== undefined) {
1033
                        if (not_first) html += ' - ';
1036
                        if (not_first) html += ' - ';
1034
                        html += genlang(66) + ': ' + this.Details["@attributes"].CachedPercent + '%'; //Cache
1037
                        html += '<span class="progress-bar-warning">&emsp;</span>&nbsp;' + genlang(66) + ': ' + this.Details["@attributes"].CachedPercent + '%'; //Cache
1035
                        not_first = true;
1038
                        not_first = true;
1036
                    }
1039
                    }
1037
                    if (this.Details["@attributes"].BuffersPercent !== undefined) {
1040
                    if (this.Details["@attributes"].BuffersPercent !== undefined) {
1038
                        if (not_first) html += ' - ';
1041
                        if (not_first) html += ' - ';
1039
                        html += genlang(65) + ': ' + this.Details["@attributes"].BuffersPercent + '%'; //Buffers
1042
                        html += '<span class="progress-bar-danger">&emsp;</span>&nbsp;' + genlang(65) + ': ' + this.Details["@attributes"].BuffersPercent + '%'; //Buffers
1040
                    }
1043
                    }
1041
                    html += ')</i></div>';
1044
                    html += ')</i></div>';
1042
                    return html;
1045
                    return html;
1043
                }
1046
                }
1044
            }
1047
            }
Line 1198... Line 1201...
1198
 
1201
 
1199
 
1202
 
1200
 
1203
 
1201
 
1204
 
1202
 
1205
 
1203
 
1206
 
1204
 
1207
 
1205
 
-
 
1206
 
1208
 
1207
 
1209
 
1208
 
1210
 
-
 
1211
 
-
 
1212
 
-
 
1213
 
-
 
1214
 
-
 
1215
 
-
 
1216
 
-
 
1217
 
-
 
1218
 
1209
 
1219
 
-
 
1220
 
1210
 
1221
 
1211
 
1222
 
1212
 
1223
 
1213
 
1224
 
1214
 
1225
 
1215
 
1226
 
1216
 
1227
 
1217
 
1228
 
1218
 
1229
 
1219
 
1230
 
1220
 
1231
 
1221
 
-
 
1222
 
1232
 
1223
 
1233
 
1224
 
1234
 
-
 
1235
 
-
 
1236
 
-
 
1237
 
-
 
1238
 
-
 
1239
 
-
 
1240
 
-
 
1241
 
-
 
1242
 
1225
 
1243
 
-
 
1244
 
1226
 
1245
 
1227
 
1246
 
1228
 
1247
 
1229
 
1248
 
1230
 
1249
 
Line 1718... Line 1737...
1718
 
1737
 
1719
 
1738
 
1720
 
1739
 
1721
 
1740
 
1722
 
1741
 
1723
 
1742
 
1724
 
1743
 
1725
 
1744
 
1726
 
1745
 
1727
 
1746
 
1728
 
1747
 
Line 1782... Line 1801...
1782
 
1801
 
1783
 
1802
 
1784
 
1803
 
1785
 
1804
 
1786
 
1805
 
1787
 
1806
 
1788
 
1807
 
1789
 
1808
 
1790
 
1809
 
1791
 
1810
 
1792
 
1811