]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
move comment
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 16 Sep 2021 14:14:43 +0000 (09:14 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 16 Sep 2021 14:14:43 +0000 (09:14 -0500)
src/lib/util/hw.c

index 6534223ce6bb1caf69c5bec0e127eb2aab1b43b1..3cb7dc63ecc9e99eb159e937444228ae885e0560 100644 (file)
@@ -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