rrd: fix a few typos

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
This commit is contained in:
Lukas Wagner 2024-01-31 14:56:51 +01:00
parent 6eed8ed992
commit f9e8ebfdc8
4 changed files with 7 additions and 7 deletions

View File

@ -300,7 +300,7 @@ fn apply_journal_lines(
linenr, linenr,
err, err,
); );
continue; // skip unparsable lines continue; // skip unparseable lines
} }
}; };

View File

@ -41,7 +41,7 @@ impl FromStr for JournalEntry {
let parts: Vec<&str> = line.splitn(4, ':').collect(); let parts: Vec<&str> = line.splitn(4, ':').collect();
if parts.len() != 4 { if parts.len() != 4 {
bail!("wrong numper of components"); bail!("wrong number of components");
} }
let time: f64 = parts[0] let time: f64 = parts[0]

View File

@ -162,9 +162,9 @@ impl DataSource {
#[derive(Serialize, Deserialize)] #[derive(Serialize, Deserialize)]
/// Round Robin Archive /// Round Robin Archive
pub struct RRA { pub struct RRA {
/// Number of seconds spaned by a single data entry. /// Number of seconds spanned by a single data entry.
pub resolution: u64, pub resolution: u64,
/// Consolitation function. /// Consolidation function.
pub cf: CF, pub cf: CF,
/// Count values computed inside this update interval. /// Count values computed inside this update interval.
pub last_count: u64, pub last_count: u64,
@ -208,7 +208,7 @@ impl RRA {
data: Vec<Option<f64>>, data: Vec<Option<f64>>,
) -> Result<(), Error> { ) -> Result<(), Error> {
if resolution != self.resolution { if resolution != self.resolution {
bail!("inser_data failed: got wrong resolution"); bail!("insert_data failed: got wrong resolution");
} }
let mut index = self.slot(start); let mut index = self.slot(start);

View File

@ -85,9 +85,9 @@ pub struct RRDv1 {
pub hour_avg: RRAv1, pub hour_avg: RRAv1,
/// Hourly data (maximum values) /// Hourly data (maximum values)
pub hour_max: RRAv1, pub hour_max: RRAv1,
/// Dayly data (average values) /// Daily data (average values)
pub day_avg: RRAv1, pub day_avg: RRAv1,
/// Dayly data (maximum values) /// Daily data (maximum values)
pub day_max: RRAv1, pub day_max: RRAv1,
/// Weekly data (average values) /// Weekly data (average values)
pub week_avg: RRAv1, pub week_avg: RRAv1,