shlib.sh: set var_online_cpus
commit5f506cda11229ba06b1b50d3ba74fe9c0a421ca3
authorKyle J. McKay <mackyle@gmail.com>
Mon, 30 Nov 2020 08:10:19 +0000 (30 01:10 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Mon, 30 Nov 2020 08:10:19 +0000 (30 01:10 -0700)
tree2d4aac1d8da2ed1c223d9250c4417770556a49a0
parentcb94ca5e49a4f45abbda63d4d2c569e1a7070fd9
shlib.sh: set var_online_cpus

Use the preexisting $Girocco::Util::online_cpus function to export
the result (or "1" if it cannot make a determination) as the
`var_online_cpus` value.

This can help automate some configuration processes and that
function knows how to extract the value from more places than
just using `getconf` with a non-POSIX value.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
shlib.sh