From 8b6358287ef0449e3abfcb553c80d133c2d4a378 Mon Sep 17 00:00:00 2001 From: onefang Date: Tue, 14 Sep 2021 16:46:09 +1000 Subject: Move getSims() back. --- src/sledjchisl/sledjchisl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index b1f34ac..1a84f13 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c @@ -8814,6 +8814,7 @@ Copy correct config/config.ini to there. // Other start up stuff. //////////////////////////////////////////////////////////////////////////////////////////////////// + getSims(); if (isTmux || isWeb) { char *d; @@ -8942,7 +8943,6 @@ Copy correct config/config.ini to there. // TODO - See https://stackoverflow.com/questions/2693948/how-do-i-retrieve-the-number-of-processors-on-c-linux, there are more portable ways, this seems to be GNU specific. int cpus = (int) sysconf(_SC_NPROCESSORS_CONF), cpusOnline = (int) sysconf(_SC_NPROCESSORS_ONLN); - getSims(); ourSims->doIt = 1; if (0 == bulkSims) bulkSims = (cpusOnline / 3) - 1; -- cgit v1.1