Skip to content

Fix hardware detection, optimize dashboard, update README#199

Open
Cylae wants to merge 1 commit intomainfrom
fix-optimize-update-readme-11603564308756225289
Open

Fix hardware detection, optimize dashboard, update README#199
Cylae wants to merge 1 commit intomainfrom
fix-optimize-update-readme-11603564308756225289

Conversation

@Cylae
Copy link
Owner

@Cylae Cylae commented Feb 19, 2026

This PR addresses the user's request to "Check. Fix. Optimize. Update the README."

Changes:

  1. Fix: Added sys.refresh_disks() in server_manager/src/core/hardware.rs because refresh_disks_list() only updates the partition list, not usage stats.
  2. Optimize: Refactored server_manager/src/interface/web.rs to offload blocking sysinfo calls (initialization and dashboard refresh) to tokio::task::spawn_blocking. This prevents the async executor from stalling during heavy I/O or computation.
  3. Config: Updated server_manager/Cargo.toml to include features = ["async_tokio"] for criterion to support async benchmarking.
  4. Docs: Updated README.md to document the requirement of the async_tokio feature for running benchmarks.

Verification:

  • cargo check passed.
  • cargo test passed.
  • Logic verified via code review.

PR created automatically by Jules for task 11603564308756225289 started by @Cylae

- Added `sys.refresh_disks()` in `HardwareInfo::detect` to ensure disk usage stats are populated.
- Offloaded heavy `sysinfo` operations to `spawn_blocking` in `start_server` and `dashboard` to prevent blocking the async runtime.
- Updated `Cargo.toml` to enable `async_tokio` feature for `criterion`.
- Updated `README.md` with benchmarking instructions.
@google-labs-jules
Copy link
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant