dalance / procs

A modern replacement for ps written in Rust
MIT License
4.99k stars 109 forks source link

use of deprecated function #622

Closed ognevny closed 3 weeks ago

ognevny commented 4 months ago

I recieve this compiler warning when build from latest release tarball

warning: use of deprecated associated function `chrono::TimeDelta::seconds`: Use `TimeDelta::try_seconds` instead
   --> src\process\windows.rs:114:46
    |
114 |                 let time = chrono::Duration::seconds(start as i64 / 10_000_000);
    |                                              ^^^^^^^
    |
    = note: `#[warn(deprecated)]` on by default
dalance commented 3 weeks ago

This deprecation was reverted. I fixed some warnings on Windows. Now there is no warning.