diff --git a/src/unix/linux/system.rs b/src/unix/linux/system.rs index cc11bac33..c1e8ec64c 100644 --- a/src/unix/linux/system.rs +++ b/src/unix/linux/system.rs @@ -398,14 +398,14 @@ impl SystemInner { let mut long_name = system_name.to_owned(); - if let Some(os_version) = Self::os_version() { + if let Some(short_name) = Self::name() { long_name.push(' '); - long_name.push_str(&os_version); + long_name.push_str(&short_name); } - if let Some(short_name) = Self::name() { + if let Some(os_version) = Self::os_version() { long_name.push(' '); - long_name.push_str(&short_name); + long_name.push_str(&os_version); } Some(long_name)