1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-09 23:15:38 -05:00

Merge branch 'master' of github.com:bbedward/DankMaterialShell

This commit is contained in:
bbedward
2025-08-08 17:05:17 -04:00

View File

@@ -306,10 +306,10 @@ Singleton {
if (prev !== null && totalDiff > 0) { if (prev !== null && totalDiff > 0) {
// Per share all CPUs (matches gnome system monitor) // Per share all CPUs (matches gnome system monitor)
cpuShare = 100 * Math.max(0, pticks - prev) / totalDiff; //cpuShare = 100 * Math.max(0, pticks - prev) / totalDiff
// per-share per-core // per-share per-core
//cpuShare = 100 * cpuCores * Math.max(0, pticks - prev) / totalDiff; cpuShare = 100 * cpuCores * Math.max(0, pticks - prev) / totalDiff;
} }
lastProcTicks[pid] = pticks; // update cache lastProcTicks[pid] = pticks; // update cache
@@ -688,14 +688,12 @@ Singleton {
running: false running: false
onExited: exitCode => { onExited: exitCode => {
if (exitCode !== 0) { if (exitCode !== 0) {
console.log("SERVICE UPDATE FAILED");
isUpdating = false; isUpdating = false;
} }
} }
stdout: StdioCollector { stdout: StdioCollector {
onStreamFinished: { onStreamFinished: {
if (text.trim()) { if (text.trim()) {
console.log(text.trim());
const fullText = text.trim(); const fullText = text.trim();
const lastBraceIndex = fullText.lastIndexOf('}'); const lastBraceIndex = fullText.lastIndexOf('}');
if (lastBraceIndex === -1) { if (lastBraceIndex === -1) {