Skip to content

Commit

Permalink
fix missing timing annoying error
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieupoumeyrolsonos authored and kali committed May 24, 2024
1 parent 5bec96f commit 93432b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcli/src/terminal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ fn render_node_prefixed(

// flops column
let mut flops_column = if options.profile && options.cost {
let timing: f64 = tags.profile.as_ref().unwrap().as_secs_f64();
let timing: f64 = tags.profile.as_ref().map(|d| d.as_secs_f64()).unwrap_or(0.0);
let flops_column_pad = flops_column_pad.clone();
let it = tags.cost.iter().map(move |c| {
if c.0.is_compute() {
Expand Down

0 comments on commit 93432b7

Please sign in to comment.