YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix: memory display
Louis Beaumontff3f887c478c
diff --git a/screenpipe-server/src/resource_monitor.rs b/screenpipe-server/src/resource_monitor.rsindex cdd423d7c..87791cbe9 100644--- a/screenpipe-server/src/resource_monitor.rs+++ b/screenpipe-server/src/resource_monitor.rs@@ -54,18 +54,22 @@ impl ResourceMonitor {if let Some(npu_usage) = self.get_npu_usage() {format!("Runtime: {:?}, Total Memory: {:.2}% ({:.2} KB / {:.2} KB), Total CPU: {:.2}%, NPU: {:.2}%",- runtime, memory_usage_percent, total_memory_kb, system_total_memory, total_cpu, npu_usage+ runtime, memory_usage_percent * 100.0, total_memory_kb, system_total_memory, total_cpu, npu_usage)} else {format!("Runtime: {:?}, Total Memory: {:.2}% ({:.2} KB / {:.2} KB), Total CPU: {:.2}%, NPU: N/A",- runtime, memory_usage_percent, total_memory_kb, system_total_memory, total_cpu+ runtime, memory_usage_percent * 100.0, total_memory_kb, system_total_memory, total_cpu)}} else {format!("Runtime: {:?}, Total Memory: {:.2}% ({:.2} KB / {:.2} KB), Total CPU: {:.2}%",- runtime, memory_usage_percent, total_memory_kb, system_total_memory, total_cpu+ runtime,+ memory_usage_percent * 100.0,+ total_memory_kb,+ system_total_memory,+ total_cpu)};@@ -78,7 +82,8 @@ impl ResourceMonitor {{warn!("Restarting due to: Memory usage: {:.2}%, Runtime: {:?}",- memory_usage_percent, runtime+ memory_usage_percent * 100.0,+ runtime);self.restart();} else if memory_usage_percent > self.memory_threshold@@ -86,7 +91,8 @@ impl ResourceMonitor {{warn!("Resource threshold exceeded: Memory usage: {:.2}%, Runtime: {:?}",- memory_usage_percent, runtime+ memory_usage_percent * 100.0,+ runtime);}}