4 Commits

Author SHA1 Message Date
pandaadir05
9faba5157c fix: improve macOS process name handling and tests
- Add validation to ensure extracted process names are non-empty
- Trim whitespace from process names before returning
- Update tests to filter for valid processes and better handle edge cases
- Improve test assertions to be more tolerant of system processes
2025-11-21 15:35:23 +02:00
pandaadir05
a8fe6ed2f8 Fix CI/CD validation errors
- Add allow dead_code to unused helper function
- Remove redundant PID assertion in macOS test
- All clippy checks pass with -D warnings
- All tests passing (33/33)
2025-11-21 13:53:30 +02:00
pandaadir05
f0606d7835 fix: cargo formatting for ci/cd 2025-11-21 12:52:08 +02:00
pandaadir05
2bcfcac407 Fix anomaly detection issues and add missing functionality
Fixed issues:
- Corrected Welford's online algorithm for variance calculation
- Added NaN and infinity guards to prevent invalid calculations
- Added Serialize/Deserialize traits to AnomalyScore and ProcessProfile

Added functionality:
- Profile persistence with save_profiles() and load_profiles()
- Global baseline computation from all process profiles
- Profile cleanup method to remove stale profiles
- Additional utility methods for profile management
2025-11-21 12:49:42 +02:00