Skip to content

Commit

Permalink
Fixed misspelling
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjj20 committed May 1, 2024
1 parent 75541b7 commit cd9cfc7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ impl Command for Disp {
}
}

if MSRDesc::is_availible() && !self.skip_msr {
if MSRDesc::is_available() && !self.skip_msr {
println!("MSRS:");
for msr in &config.msrs {
match msr.into_value() {
Expand Down Expand Up @@ -119,7 +119,7 @@ fn collect_facts(
CpuidType::KvmInfo(_) => true,
};

if MSRDesc::is_availible() && !use_kvm {
if MSRDesc::is_available() && !use_kvm {
for msr in &config.msrs {
if let Ok(value) = MSRValue::try_from(msr) {
let mut facts = value.collect_facts();
Expand Down
4 changes: 2 additions & 2 deletions src/msr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl MSRDesc {
Ok(u64::from_le_bytes(msr_bytes))
}
#[cfg(all(target_os = "linux", feature = "use_msr"))]
pub fn is_availible() -> bool {
pub fn is_available() -> bool {
true
}

Expand All @@ -78,7 +78,7 @@ impl MSRDesc {
Err(Error::NotAvailible)
}
#[cfg(any(not(target_os = "linux"), not(feature = "use_msr")))]
pub fn is_availible() -> bool {
pub fn is_available() -> bool {
false
}

Expand Down

0 comments on commit cd9cfc7

Please sign in to comment.