From 3a69b078354b30a43854f0ec2ef0041566e46a9d Mon Sep 17 00:00:00 2001 From: onefang Date: Tue, 14 Sep 2021 16:11:50 +1000 Subject: Only do initial getSims() in tmux thing. --- src/sledjchisl/sledjchisl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sledjchisl') diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index d3f1b5f..f025966 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c @@ -8813,7 +8813,6 @@ Copy correct config/config.ini to there. //////////////////////////////////////////////////////////////////////////////////////////////////// // Other start up stuff. //////////////////////////////////////////////////////////////////////////////////////////////////// - getSims(); if (isTmux || isWeb) { @@ -8943,6 +8942,7 @@ 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