From 0a3e042548ad0843a1e6a071d4c61eb2d6d9fc30 Mon Sep 17 00:00:00 2001 From: Johan Walles Date: Fri, 30 Jun 2023 20:04:45 +0200 Subject: [PATCH] Remove unneede check Remnant from when the clod transparency depended on the height of the cloud. --- libloadviz/src/renderer.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libloadviz/src/renderer.rs b/libloadviz/src/renderer.rs index a7a3eb3..bf5fc55 100644 --- a/libloadviz/src/renderer.rs +++ b/libloadviz/src/renderer.rs @@ -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;