You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fix copy-paste bug in resource.getrusage(): ru_stime uses wrong field #5896
In stdlib/src/resource.rs, the From<libc::rusage> for Rusage implementation has a copy-paste bug where the ru_stime field is incorrectly populated with rusage.ru_utime instead of rusage.ru_stime.
Impact
This bug affects the correctness of resource.getrusage() results on all platforms. The system time (ru_stime) is lost and user time (ru_utime) is duplicated.
Location
File: stdlib/src/resource.rs
Lines: ~94-96 in the From<libc::rusage> for Rusage implementation
Activity
youknowone commentedon Jul 4, 2025
closed by #5893