We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6b3a789 + fe4bdee commit a3f7812Copy full SHA for a3f7812
src/uu/w/src/w.rs
@@ -97,11 +97,6 @@ fn fetch_idle_time(tty: String) -> Result<Duration, std::io::Error> {
97
}
98
99
100
-#[cfg(not(target_os = "linux"))]
101
-fn _fetch_idle_time(_tty: String) -> Result<Duration, std::io::Error> {
102
- Ok(Duration::ZERO)
103
-}
104
-
105
fn format_time_elapsed(time: Duration, old_style: bool) -> Result<String, chrono::OutOfRangeError> {
106
let t = chrono::Duration::from_std(time)?;
107
if t.num_days() >= 2 {
0 commit comments