diff --git a/VERSION b/VERSION index a24809a..50f402a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.0.48 +0.0.49 diff --git a/src/process_info.c b/src/process_info.c index 3db463d..ef6d3f6 100644 --- a/src/process_info.c +++ b/src/process_info.c @@ -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; diff --git a/src/version.h b/src/version.h index 644bcef..83e5088 100644 --- a/src/version.h +++ b/src/version.h @@ -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 */ diff --git a/www/processes.css b/www/processes.css index 7568381..a7ca61f 100644 --- a/www/processes.css +++ b/www/processes.css @@ -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; } diff --git a/www/processes.js b/www/processes.js index 54461e2..6312703 100644 --- a/www/processes.js +++ b/www/processes.js @@ -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.