refactor fixed-point.h to match style standards

This commit is contained in:
EDiasAlberto
2024-10-24 20:16:40 +01:00
parent e749936b1f
commit 49a9284f02
2 changed files with 30 additions and 25 deletions

View File

@@ -163,7 +163,7 @@ thread_tick (void)
if (t != idle_thread)
ready++;
fp32_t old_coeff = fp_div_int (fp_mul_int(load_avg, 59), 60);
fp32_t new_coeff = fp_div_int (int_to_fp (ready), 60);
fp32_t new_coeff = fp_div_int (fp_from_int (ready), 60);
load_avg = fp_add (old_coeff, new_coeff);
thread_foreach (thread_update_recent_cpu, NULL);