Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
redzic committed Jul 6, 2021
1 parent c1ab91e commit 667d5ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/state.rs
Expand Up @@ -125,11 +125,11 @@ impl ProgressState {
}

pub fn per_sec(&self) -> f64 {
let fps = 1.0 / self.est.seconds_per_step();
if fps.is_nan() {
let per_sec = 1.0 / self.est.seconds_per_step();
if per_sec.is_nan() {
0.0
} else {
fps
per_sec
}
}

Expand Down

0 comments on commit 667d5ea

Please sign in to comment.