mbproxy: strip historical phase/wave/plan references from source comments
Comments described the *history* of how the code arrived (phase numbers, wave IDs, review IDs, dated TODOs) instead of what it does today. That scaffolding rotted as the codebase evolved. Cleaned 60 source files + .gitignore; behaviour unchanged (387/387 tests still pass). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -5,7 +5,7 @@ namespace Mbproxy.Admin;
|
||||
/// <summary>
|
||||
/// Renders a <see cref="StatusResponse"/> as a self-contained HTML page.
|
||||
///
|
||||
/// <para>Constraints (from design.md Phase 07):</para>
|
||||
/// <para>Constraints (see <c>docs/design.md</c> status-page section):</para>
|
||||
/// <list type="bullet">
|
||||
/// <item>No external assets (CSS/JS/fonts/favicons) — firewalled networks only.</item>
|
||||
/// <item><c><meta http-equiv="refresh" content="5"></c> for auto-refresh.</item>
|
||||
@@ -77,16 +77,16 @@ internal static class StatusHtmlRenderer
|
||||
sb.Append("<th>FC06</th><th>FC16</th><th>FC?</th><th>BCD slots</th>");
|
||||
sb.Append("<th>Partial BCD</th><th>Invalid BCD</th><th>Ex 01</th><th>Ex 02</th><th>Ex 03</th><th>Ex 04</th><th>Ex ?</th>");
|
||||
sb.Append("<th>RTT ms</th><th>Bytes in</th><th>Bytes out</th>");
|
||||
// Phase 9: multiplexer telemetry columns.
|
||||
// Multiplexer telemetry columns.
|
||||
sb.Append("<th>In-flight</th><th>Max in-flight</th><th>TxId wraps</th>");
|
||||
sb.Append("<th>Cascades</th><th>Queue</th>");
|
||||
// Phase 10: coalescing column. Single cell carries hit / (hit + miss) ratio as
|
||||
// a percentage plus the raw hit count for context. Kept compact (one cell) to
|
||||
// Coalescing column. Single cell carries hit / (hit + miss) ratio as a
|
||||
// percentage plus the raw hit count for context. Kept compact (one cell) to
|
||||
// stay under the 50 KB page-weight budget.
|
||||
sb.Append("<th>Coal</th>");
|
||||
// Phase 11: cache column. Single cell carries hit-ratio percent plus raw hit
|
||||
// count; an em-dash when no cache-eligible reads have occurred. Page-weight
|
||||
// budget assertion stays under 50 KB for the 54-PLC fleet.
|
||||
// Cache column. Single cell carries hit-ratio percent plus raw hit count;
|
||||
// an em-dash when no cache-eligible reads have occurred. Page-weight budget
|
||||
// assertion stays under 50 KB for the 54-PLC fleet.
|
||||
sb.Append("<th>Cache</th>");
|
||||
sb.Append("</tr></thead><tbody>");
|
||||
|
||||
@@ -150,14 +150,14 @@ internal static class StatusHtmlRenderer
|
||||
sb.Append("<td>").Append(plc.Backend.LastRoundTripMs.ToString("F1")).Append("</td>");
|
||||
sb.Append("<td>").Append(plc.Bytes.UpstreamIn).Append("</td>");
|
||||
sb.Append("<td>").Append(plc.Bytes.UpstreamOut).Append("</td>");
|
||||
// Phase 9: multiplexer telemetry cells.
|
||||
// Multiplexer telemetry cells.
|
||||
sb.Append("<td>").Append(plc.Backend.InFlight).Append("</td>");
|
||||
sb.Append("<td>").Append(plc.Backend.MaxInFlight).Append("</td>");
|
||||
sb.Append("<td>").Append(plc.Backend.TxIdWraps).Append("</td>");
|
||||
sb.Append("<td>").Append(plc.Backend.DisconnectCascades).Append("</td>");
|
||||
sb.Append("<td>").Append(plc.Backend.QueueDepth).Append("</td>");
|
||||
// Phase 10: coalescing ratio cell — "<pct>% (<hit>)". When no coalesced reads
|
||||
// have been seen, render an em-dash to keep the cell narrow.
|
||||
// Coalescing ratio cell — "<pct>% (<hit>)". When no coalesced reads have
|
||||
// been seen, render an em-dash to keep the cell narrow.
|
||||
long coalHit = plc.Backend.CoalescedHitCount;
|
||||
long coalMiss = plc.Backend.CoalescedMissCount;
|
||||
sb.Append("<td>");
|
||||
@@ -171,7 +171,7 @@ internal static class StatusHtmlRenderer
|
||||
sb.Append(pct).Append("% (").Append(coalHit).Append(')');
|
||||
}
|
||||
sb.Append("</td>");
|
||||
// Phase 11: cache ratio cell — same pattern as coalescing.
|
||||
// Cache ratio cell — same pattern as coalescing.
|
||||
long cacheHit = plc.Backend.CacheHitCount;
|
||||
long cacheMiss = plc.Backend.CacheMissCount;
|
||||
sb.Append("<td>");
|
||||
|
||||
Reference in New Issue
Block a user