Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove space from value and move it to output #124

Merged
merged 1 commit into from
Jan 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub fn print_cpus(cpus: Vec<CPU>, name: String, raw: bool) {
println!("{} {}", x.name, x.cur_freq);
}
} else {
println!("Name:{}", name);
println!("Name: {}", name);
for x in cpus {
println!("{} is currently @ {} MHz", x.name, x.cur_freq / 1000);
}
Expand Down
2 changes: 1 addition & 1 deletion src/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub fn check_cpu_name() -> Result<String, Error> {
// For each line that starts with the clock speed identifier return the number after : as a 32
// bit integer
find_cpu_mhz
.and_then(|line| line.split(':').last())
.and_then(|line| line.split(": ").last())
.map(|x| x.to_owned())
.ok_or(Error::Unknown)
}
Expand Down