Fix: counter reset after each iteration
This commit is contained in:
parent
e7c7d950b9
commit
f4c0f27aad
|
@ -100,7 +100,6 @@ fn run(dataset_fn: String, jobid: Jobid, similarities_fn: String, progress_fn: S
|
|||
|
||||
let progress_file = File::create(&progress_fn).expect("Unable to open");
|
||||
let mut wtr_progress = csv::Writer::from_writer(&progress_file);
|
||||
let mut counter = 1;
|
||||
|
||||
let mut similarities: Vec<(Jobid, Similarity, bool)> = Vec::new();
|
||||
|
||||
|
@ -108,6 +107,7 @@ fn run(dataset_fn: String, jobid: Jobid, similarities_fn: String, progress_fn: S
|
|||
let mut log_file = LineWriter::new(log_file);
|
||||
|
||||
for i in 0..10 {
|
||||
let mut counter = 1;
|
||||
let mut avail_codings: Vec<(u32, &JobCoding)>;
|
||||
avail_codings = q_codings.iter().map(|(k, v)| (*k, v)).collect();
|
||||
|
||||
|
|
Loading…
Reference in New Issue