proxmox-rrd: cleanup - use struct instead of tuple

This commit is contained in:
Dietmar Maurer
2021-10-16 12:38:34 +02:00
parent 45700e2ecf
commit 2b05008a11
2 changed files with 19 additions and 9 deletions

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,
)?;