mirror of
https://github.com/ClementTsang/bottom.git
synced 2026-10-05 16:51:32 +00:00
fix: correct spelling across docs, comments, and configs (#1891)
This commit is contained in:
1 parent
1aaea6d71b
commit
f277dff2b2
7 files changed
+8
-8
No files matched your search
@@ -26,7 +26,7 @@ impl FromStr for TemperatureType {
|
||||
}
|
||||
|
||||
impl TemperatureType {
|
||||
/// Given a temperature in Celsius, covert it if necessary for a different
|
||||
/// Given a temperature in Celsius, convert it if necessary for a different
|
||||
/// unit.
|
||||
pub fn convert_temp_unit(&self, celsius: f32) -> TypedTemperature {
|
||||
match self {
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@ use starship_battery::{Battery, Manager};
|
||||
use super::DataFilters;
|
||||
use crate::app::layout_manager::UsedWidgets;
|
||||
|
||||
// TODO: We can possibly re-use an internal buffer for this to reduce allocs.
|
||||
// TODO: We can possibly reuse an internal buffer for this to reduce allocs.
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct Data {
|
||||
pub collection_time: Instant,
|
||||
|
||||
@@ -138,7 +138,7 @@ pub(crate) fn all_volume_io() -> anyhow::Result<Vec<anyhow::Result<(DISK_PERFORM
|
||||
// Iteration completed successfully, continue on.
|
||||
}
|
||||
_ => {
|
||||
// Some error occured.
|
||||
// Some error occurred.
|
||||
close_find_handle(handle)?;
|
||||
bail!("Error while iterating over volumes: {err:?}");
|
||||
}
|
||||
@@ -151,7 +151,7 @@ pub(crate) fn all_volume_io() -> anyhow::Result<Vec<anyhow::Result<(DISK_PERFORM
|
||||
|
||||
/// Returns the volume name from a mount name if possible.
|
||||
pub(crate) fn volume_name_from_mount(mount: &str) -> anyhow::Result<String> {
|
||||
// According to winapi docs 50 is a reasonable length to accomodate the volume
|
||||
// According to winapi docs 50 is a reasonable length to accommodate the volume
|
||||
// path https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getvolumenameforvolumemountpointw
|
||||
const VOLUME_MAX_LEN: usize = 50;
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ pub fn is_device_awake(device: &Path) -> bool {
|
||||
// check to fail and temperatures to appear as zero instead of
|
||||
// having the file not exist.
|
||||
//
|
||||
// Their self-hosted git instance has disabled sign up, so this bug cant be
|
||||
// Their self-hosted git instance has disabled sign up, so this bug can't be
|
||||
// reported either.
|
||||
state == "D0" || state == "unknown"
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user