From: Arran Cudbard-Bell Date: Thu, 16 Sep 2021 14:14:43 +0000 (-0500) Subject: move comment X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32bfc7a2430c1d81a637b464e03733e6efa6a985;p=thirdparty%2Ffreeradius-server.git move comment --- diff --git a/src/lib/util/hw.c b/src/lib/util/hw.c index 6534223ce6..3cb7dc63ec 100644 --- a/src/lib/util/hw.c +++ b/src/lib/util/hw.c @@ -90,11 +90,11 @@ uint32_t fr_hw_num_cores_active(void) fclose(cpu); } - if (!tsibs || !lcores) return 1; - /* * Prevent clang scanner from warning about divide by zero */ + if (!tsibs || !lcores) return 1; + return lcores / (tsibs / lcores); } #else