The following warnings occurred:
Warning [2] Trying to access array offset on null - Line: 198 - File: inc/plugins/google_seo.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/plugins/google_seo.php 198 errorHandler->error_callback
/inc/plugins/google_seo/redirect.php 131 google_seo_tid
/inc/class_plugins.php 142 google_seo_redirect_hook
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Undefined property: DB_MySQLi::$google_seo_query_limit - Line: 232 - File: inc/plugins/google_seo.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/plugins/google_seo.php 232 errorHandler->error_callback
/inc/plugins/google_seo/redirect.php 131 google_seo_tid
/inc/class_plugins.php 142 google_seo_redirect_hook
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Decrement on type null has no effect, this will change in the next major version of PHP - Line: 232 - File: inc/plugins/google_seo.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/plugins/google_seo.php 232 errorHandler->error_callback
/inc/plugins/google_seo/redirect.php 131 google_seo_tid
/inc/class_plugins.php 142 google_seo_redirect_hook
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Undefined variable $r1comma - Line: 444 - File: inc/plugins/thx.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/plugins/thx.php 444 errorHandler->error_callback
/inc/plugins/thx.php 280 build_thank
/inc/class_plugins.php 142 thx
/inc/functions_post.php 936 pluginSystem->run_hooks
/showthread.php 1122 build_postbit
Warning [2] Undefined variable $entries - Line: 444 - File: inc/plugins/thx.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/plugins/thx.php 444 errorHandler->error_callback
/inc/plugins/thx.php 280 build_thank
/inc/class_plugins.php 142 thx
/inc/functions_post.php 936 pluginSystem->run_hooks
/showthread.php 1122 build_postbit




FreeBSD, missing compilation dependencies
#11
(02-09-2016, 08:36 PM)LogicParrot Wrote:
(02-09-2016, 02:10 AM)DrMasik Wrote: If you needed number of CPU threads use:
Code:
sysctl hw.ncpu | awk '{print $2}'

Thanks, but I'd need a cross-platform way to do this.

Code:
#!/bin/sh osName=`uname` if [ "${osName}" = "FreeBSD" ]; then   ncpu=`sysctl hw.ncpu | awk '{print $2}'`; elif [ "${osName}" = "Linux" ]; then   ncpu=`nproc`; else   wCount=`whereis nproc | awk '{print $2}' | wc -m`;   if [ ${wCount} -lt 2 ]; then     ncpu=2;   else     ncpu=`nproc`;   fi fi echo ${ncpu}
Reply
Thanks given by: LogicParrot
#12
Thanks Smile
I'll open a PR soon.
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)