Skip to content

Fixs: Battery Info Panic, Fixed Incorrect Memory Calculation, Removed Overly Specific Build Target#4

Merged
gantoreno merged 5 commits intogantoreno:mainfrom
DonovanMontoya:main
Jan 3, 2026
Merged

Fixs: Battery Info Panic, Fixed Incorrect Memory Calculation, Removed Overly Specific Build Target#4
gantoreno merged 5 commits intogantoreno:mainfrom
DonovanMontoya:main

Conversation

@DonovanMontoya
Copy link
Contributor

@DonovanMontoya DonovanMontoya commented Nov 18, 2025

  1. Refactor the OS, host, kernel, uptime, shell, CPU, and battery segments to return
    sensible fallback strings when data is missing, avoiding panics for edge cases like
    battery‑less systems.
  2. Remove the committed .DS_Store file and updated the '.gitignore' to exclude macOS
    metadata.
  3. Fixed Incorrect Memory Usage Calculation.
  4. Removed Target platform from Cargo Settings. (Enables native compile for the user.)

…nctions to use safer error handling with fallback values. This improves robustness by preventing panics on missing data. Especially in the case the user has no battery.
…r more flexible builds across different platforms.
@DonovanMontoya DonovanMontoya changed the title Fix Battery Info Panic Fixs: Battery Info Panic, Fixed Incorrect Memory Calculation, Removed Overly Specific Build Target Nov 21, 2025
@gantoreno
Copy link
Owner

It's refreshing coming back from time to time to this project and seeing some QoL updates like this - appreciate the contribution!

@gantoreno gantoreno merged commit 6643a56 into gantoreno:main Jan 3, 2026
@gantoreno gantoreno added the bug Something isn't working label Jan 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants