Skip to content

Commit

Permalink
Remove unneede check
Browse files Browse the repository at this point in the history
Remnant from when the clod transparency depended on the height of the
cloud.
  • Loading branch information
walles committed Jun 30, 2023
1 parent c907768 commit 0a3e042
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions libloadviz/src/renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,6 @@ impl Renderer {

let x_fraction_0_to_1 = pixel_x as f32 / (width as f32 - 1.0);
let cpu_load = get_load(viz_loads, x_fraction_0_to_1);
if cpu_load.system_0_to_1 < 0.01 {
// Prevent a division by zero below
return None;
}

// Compute the sysload height for this load
let cloud_height_pixels = cpu_load.system_0_to_1 * height as f32;
Expand Down

0 comments on commit 0a3e042

Please sign in to comment.