Skip to content

Commit 80a7550

Browse files
authored
Merge pull request unraid#2383 from Squidly271/patch-4
Fix: CPU Bar charts not updating
2 parents 2c57119 + 9c34169 commit 80a7550

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

emhttp/plugins/dynamix/DashStats.page

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1726,10 +1726,10 @@ function updateCPUBarCharts() {
17261726
$cpuElements.text(cpuLoadText).css({'color': cpuLoadFontColor});
17271727

17281728
// Only call alive() if color actually changed
1729-
if (cpuLoadColor !== lastCpuValues.color) {
1729+
//if (cpuLoadColor !== lastCpuValues.color) {
17301730
$cpuAliveElements.alive(cpuLoadText, cpuLoadColor);
17311731
lastCpuValues.color = cpuLoadColor;
1732-
}
1732+
// }
17331733

17341734
lastCpuValues.load = cpuLoad;
17351735
lastCpuValues.fontColor = cpuLoadFontColor;
@@ -1760,14 +1760,14 @@ function updateCPUBarCharts() {
17601760

17611761
// Only update alive() if color changed
17621762
const lastCore = lastCpuValues.coreValues[index] || {};
1763-
if (coreColor !== lastCore.color) {
1763+
//if (coreColor !== lastCore.color) {
17641764
cpuAliveUpdates.push({
17651765
selector: '#cpu' + index,
17661766
text: coreLoadText,
17671767
color: coreColor
17681768
});
17691769
lastCore.color = coreColor;
1770-
}
1770+
// }
17711771

17721772
// Update cache
17731773
lastCpuValues.coreValues[index] = {
@@ -2774,4 +2774,4 @@ $(function() {
27742774
});
27752775
});
27762776

2777-
</script>
2777+
</script>

0 commit comments

Comments
 (0)