chore: honestly fixed so much and forgot to commit

Signed-off-by: Sienna Meridian Satterwhite <sienna@r3t.io>
This commit is contained in:
2025-12-28 17:39:27 +00:00
parent f9f289f5b2
commit d1d3aec8aa
47 changed files with 2248 additions and 438 deletions

View File

@@ -43,11 +43,10 @@ fn render_debug_ui(
// Node information
if let Some(clock) = &node_clock {
ui.label(format!("Node ID: {}", &clock.node_id.to_string()[..8]));
// Show the current node's clock value (timestamp)
let current_timestamp =
clock.clock.clocks.get(&clock.node_id).copied().unwrap_or(0);
ui.label(format!("Clock: {}", current_timestamp));
ui.label(format!("Known nodes: {}", clock.clock.clocks.len()));
// Show the sum of all timestamps (total operations across all nodes)
let total_ops: u64 = clock.clock.timestamps.values().sum();
ui.label(format!("Clock: {} (total ops)", total_ops));
ui.label(format!("Known nodes: {}", clock.clock.node_count()));
} else {
ui.label("Node: Not initialized");
}