Skip to content

Refactor/resources - #78

Merged
imadofficial merged 4 commits into
mainfrom
refactor/resources
Jan 12, 2026
Merged

Refactor/resources#78
imadofficial merged 4 commits into
mainfrom
refactor/resources

Conversation

@HublackBE

@HublackBE HublackBE commented Jan 12, 2026

Copy link
Copy Markdown
Contributor

Fix RAM Usage; Add CPU Usage; fix filtering after refresh

Changed Memory message fields in resources.proto from string to uint64 for total and free. Updated srvOverview.xaml.cs to use ulong and double types for memory calculations, improving type safety and performance by eliminating string parsing.
- Changed process state color mapping for Running and Sleeping states to use success-themed brushes.
- Re-enabled and improved CPU usage display in srvOverview, including a percentage label and progress bar.
- Added logic to calculate and display CPU usage based on total and idle times.
Renamed Order_services() to Order_processes() for clarity and updated all references. Improved RefreshButton_Click to re-apply filtering and ordering after refresh. Adjusted process state color assignments for better visual distinction.
Refined the RefreshButton_Click handler to filter loaded services, remove non-matching entries, re-add filtered services, and order the list before disabling the loading indicator. This improves the accuracy and presentation of the displayed services.
@imadofficial
imadofficial merged commit 7ca3fae into main Jan 12, 2026
1 check passed
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.

2 participants