Skip to content

Commit

Permalink
fix(management): fix arch showing up as "unknown" for armv6
Browse files Browse the repository at this point in the history
  • Loading branch information
ravenclaw900 committed Oct 6, 2021
1 parent 83d6b1d commit 18215c7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/backend/src/systemdata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,16 @@ pub fn host() -> types::HostData {
.trim_end_matches('\n')
.parse::<u32>()
.unwrap();
let arch = info.architecture().as_str();
if arch == "unknown" {
arch = "armv6/other";
} else if arch == "arm" {
arch = "armv7";
}
types::HostData {
hostname: info.hostname().to_string(),
uptime,
arch: info.architecture().as_str().to_string(),
arch: arch.to_string(),
kernel: info.release().to_string(),
version: format!("{}.{}.{}", dp_version[1], dp_version[3], dp_version[5]),
packages: installed_pkgs,
Expand Down

0 comments on commit 18215c7

Please sign in to comment.