v0.0.49 - Fix: WebKit caching sovereign:// responses — add cache-busting to processes polls; remove shaded backgrounds from CPU values; remove debug prints
This commit is contained in:
@@ -347,8 +347,6 @@ static cJSON *build_proc_obj(guint pid, proc_own_t own,
|
||||
double djiffies = (double)(cur_jiffies - s->prev_jiffies);
|
||||
cpu_pct = (djiffies / (double)clk_tck()) / dt * 100.0;
|
||||
if (cpu_pct < 0) cpu_pct = 0;
|
||||
/* Cap at 100 * cpu_count to avoid absurd values; we report
|
||||
* per-process so >100 is valid on multicore. */
|
||||
}
|
||||
}
|
||||
s->prev_jiffies = cur_jiffies;
|
||||
|
||||
+2
-2
@@ -11,9 +11,9 @@
|
||||
#ifndef SOVEREIGN_BROWSER_VERSION_H
|
||||
#define SOVEREIGN_BROWSER_VERSION_H
|
||||
|
||||
#define SB_VERSION "v0.0.48"
|
||||
#define SB_VERSION "v0.0.49"
|
||||
#define SB_VERSION_MAJOR 0
|
||||
#define SB_VERSION_MINOR 0
|
||||
#define SB_VERSION_PATCH 48
|
||||
#define SB_VERSION_PATCH 49
|
||||
|
||||
#endif /* SOVEREIGN_BROWSER_VERSION_H */
|
||||
|
||||
+6
-13
@@ -75,22 +75,15 @@ code { font-family: var(--font); background: var(--border); padding: 1px 4px; bo
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
/* Heat bar for CPU columns. A colored background behind the numeric
|
||||
* value: green < 10%, yellow < 50%, red >= 50%. Text is always
|
||||
* readable: white on colored backgrounds, fg on the cold (idle)
|
||||
* background. */
|
||||
/* CPU values: plain text, no shaded background. Color indicates
|
||||
* severity: green < 10%, yellow < 50%, red >= 50%, fg for idle. */
|
||||
.heat {
|
||||
display: inline-block;
|
||||
min-width: 48px;
|
||||
padding: 1px 6px;
|
||||
border-radius: 3px;
|
||||
text-align: right;
|
||||
font-weight: bold;
|
||||
}
|
||||
.heat.cool { background: #4caf50; color: #fff; }
|
||||
.heat.warm { background: #ff9800; color: #fff; }
|
||||
.heat.hot { background: #f44336; color: #fff; }
|
||||
.heat.cold { background: var(--border); color: var(--fg); }
|
||||
.heat.cool { color: #4caf50; }
|
||||
.heat.warm { color: #ff9800; }
|
||||
.heat.hot { color: #f44336; }
|
||||
.heat.cold { color: var(--fg); }
|
||||
|
||||
/* Renderer row: clickable to expand hosted tabs. */
|
||||
.renderer-row { cursor: pointer; }
|
||||
|
||||
+2
-2
@@ -194,7 +194,7 @@ function renderProcTable() {
|
||||
|
||||
async function fetchProcesses() {
|
||||
try {
|
||||
var data = await sovereignGet('sovereign://processes/list');
|
||||
var data = await sovereignGet('sovereign://processes/list?_t=' + Date.now());
|
||||
gProcData = Array.isArray(data) ? data : [];
|
||||
renderProcTable();
|
||||
} catch (e) {
|
||||
@@ -293,7 +293,7 @@ function renderTabsTable() {
|
||||
|
||||
async function fetchTabs() {
|
||||
try {
|
||||
var data = await sovereignGet('sovereign://processes/tabs');
|
||||
var data = await sovereignGet('sovereign://processes/tabs?_t=' + Date.now());
|
||||
gTabsData = Array.isArray(data) ? data : [];
|
||||
renderTabsTable();
|
||||
// If a tab is selected, refresh its drill-down too.
|
||||
|
||||
Reference in New Issue
Block a user