Skip to content

Commit b7e1202

Browse files
committed
Rename sum_blocks
1 parent 26895a3 commit b7e1202

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/cig/examples/profiling.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ fn profile_functions_extensive(n: u32, samples: usize) {
228228

229229
stats.total += 1;
230230
stats.block_distribution[std::cmp::min(num_blocks, 6)] += 1;
231-
stats.avg_blocks += num_blocks as f64;
231+
stats.sum_blocks += num_blocks as f64;
232232

233233
if num_blocks == 1 {
234234
stats.irreducible += 1;
@@ -288,7 +288,7 @@ fn profile_functions_extensive(n: u32, samples: usize) {
288288
stats.irreducible,
289289
100.0 * stats.irreducible as f64 / stats.total as f64
290290
);
291-
println!(" Average blocks: {:.3}", stats.avg_blocks / stats.total as f64);
291+
println!(" Average blocks: {:.3}", stats.sum_blocks / stats.total as f64);
292292
println!("\n Block count distribution:");
293293
for (blocks, count) in stats.block_distribution.iter().enumerate() {
294294
if *count > 0 {
@@ -323,7 +323,7 @@ struct PartitionStats {
323323
total: usize,
324324
irreducible: usize,
325325
fully_separable: usize,
326-
avg_blocks: f64,
326+
sum_blocks: f64,
327327
block_distribution: [usize; 7], // 0-6+ blocks
328328
}
329329

0 commit comments

Comments
 (0)