summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--whrd/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/whrd/src/lib.rs b/whrd/src/lib.rs
index e508503..de08988 100644
--- a/whrd/src/lib.rs
+++ b/whrd/src/lib.rs
@@ -47,7 +47,7 @@ impl SessionCollection {
inner
}
}
-
+
pub fn get_empty() -> Self {
Self {
inner: vec![]
@@ -201,7 +201,7 @@ impl From<Utmpx> for Session {
// active when they are not.
// https://github.com/GrayJack/coreutils/issues/164
let active = utmpx.entry_type() == UtmpxKind::UserProcess && utmpx.is_active();
- let login_time = utmpx.timeval().tv_sec as i64;
+ let login_time = utmpx.timeval().tv_sec;
Self {
host: None,