proxmox-rrd: cleanup - use struct instead of tuple

This commit is contained in:
Dietmar Maurer committed 2021-10-16 12:45:03 +02:00
1 parent 45700e2ecf
commit 2b05008a11
2 files changed
+19 -9

No files matched your search

+4 -4
View File
@@ -318,14 +318,14 @@ fn apply_journal_impl(
// Apply old journals first
let journal_list = state.read().unwrap().list_old_journals()?;
for (_time, filename, path) in journal_list {
log::info!("apply old journal log {}", filename);
let file = std::fs::OpenOptions::new().read(true).open(path)?;
for entry in journal_list {
log::info!("apply old journal log {}", entry.name);
let file = std::fs::OpenOptions::new().read(true).open(&entry.path)?;
let mut reader = BufReader::new(file);
lines += apply_journal_lines(
Arc::clone(&state),
Arc::clone(&rrd_map),
&filename,
&entry.name,
&mut reader,
false,
)?;