]> git.proxmox.com Git - proxmox.git/commitdiff
rrd: fix a few typos
authorLukas Wagner <l.wagner@proxmox.com>
Wed, 31 Jan 2024 13:56:51 +0000 (14:56 +0100)
committerLukas Wagner <l.wagner@proxmox.com>
Thu, 1 Feb 2024 09:32:19 +0000 (10:32 +0100)
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
proxmox-rrd/src/cache.rs
proxmox-rrd/src/cache/journal.rs
proxmox-rrd/src/rrd.rs
proxmox-rrd/src/rrd_v1.rs

index 254010f3547b199d1ae2fa5cf6b8932ad2da54a1..8bb83f53d810d8433a367854887a6a05a604a3b3 100644 (file)
@@ -300,7 +300,7 @@ fn apply_journal_lines(
                     linenr,
                     err,
                 );
-                continue; // skip unparsable lines
+                continue; // skip unparseable lines
             }
         };
 
index 7c260e1e88366fb66d78ba55663fdb8ffc409f74..b26a81bac42ab232a6f21bc75b758cba47f7a297 100644 (file)
@@ -41,7 +41,7 @@ impl FromStr for JournalEntry {
 
         let parts: Vec<&str> = line.splitn(4, ':').collect();
         if parts.len() != 4 {
-            bail!("wrong numper of components");
+            bail!("wrong number of components");
         }
 
         let time: f64 = parts[0]
index 1aec9c799a74eca4150a239839113396667e94fe..c363e8b223e05bcaa5e2d933aaa0e09cd3b51cbb 100644 (file)
@@ -162,9 +162,9 @@ impl DataSource {
 #[derive(Serialize, Deserialize)]
 /// Round Robin Archive
 pub struct RRA {
-    /// Number of seconds spaned by a single data entry.
+    /// Number of seconds spanned by a single data entry.
     pub resolution: u64,
-    /// Consolitation function.
+    /// Consolidation function.
     pub cf: CF,
     /// Count values computed inside this update interval.
     pub last_count: u64,
@@ -208,7 +208,7 @@ impl RRA {
         data: Vec<Option<f64>>,
     ) -> Result<(), Error> {
         if resolution != self.resolution {
-            bail!("inser_data failed: got wrong resolution");
+            bail!("insert_data failed: got wrong resolution");
         }
 
         let mut index = self.slot(start);
index 2f4a25f8383166120da2bd28c1bfb170057ccecc..3ae39bcfac54b07fae7b83fba8748fd98444a167 100644 (file)
@@ -85,9 +85,9 @@ pub struct RRDv1 {
     pub hour_avg: RRAv1,
     /// Hourly data (maximum values)
     pub hour_max: RRAv1,
-    /// Dayly data (average values)
+    /// Daily data (average values)
     pub day_avg: RRAv1,
-    /// Dayly data (maximum values)
+    /// Daily data (maximum values)
     pub day_max: RRAv1,
     /// Weekly data (average values)
     pub week_avg: RRAv1,