mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 20:57:49 +02:00
account twice while only one exists (macOS) - renamed host.users to host.sessions
This commit is contained in:
@ -113,7 +113,8 @@ async fn host(tag: Tag) -> Value {
|
||||
dict.insert_value("uptime", uptime_dict);
|
||||
}
|
||||
|
||||
// Users
|
||||
// Sessions
|
||||
// note: the heim host module has nomenclature "users"
|
||||
let mut users = host::users();
|
||||
let mut user_vec = vec![];
|
||||
while let Some(user) = users.next().await {
|
||||
@ -125,7 +126,7 @@ async fn host(tag: Tag) -> Value {
|
||||
}
|
||||
}
|
||||
let user_list = UntaggedValue::Table(user_vec);
|
||||
dict.insert_untagged("users", user_list);
|
||||
dict.insert_untagged("sessions", user_list);
|
||||
|
||||
dict.into_value()
|
||||
}
|
||||
|
Reference in New Issue
Block a user