I actually found a way to fix this by modifying the /usr/lib/python3/dist-packages/landscape/sysinfo/load.py file to the following:
import os from decimal import *
from twisted.internet.defer import succeed
class Load(object):
def register(self, sysinfo): self._sysinfo = sysinfo
def run(self): self._sysinfo.add_header("System load", str(Decimal(os.getloadavg()[0]).quantize(Decimal('.00')))) return succeed(None)
And now I get the correct info:
$ landscape-sysinfo System load: 0.86 Processes: 335 Usage of /: 51.0% of 211.67GB Users logged in: 1 Memory usage: 12% IPv4 address for eth0: 10.0.0.100 Swap usage: 0%
I actually found a way to fix this by modifying the /usr/lib/ python3/ dist-packages/ landscape/ sysinfo/ load.py file to the following:
import os
from decimal import *
from twisted. internet. defer import succeed
class Load(object):
def register(self, sysinfo):
self._ sysinfo = sysinfo
def run(self):
self._ sysinfo. add_header( "System load", str(Decimal( os.getloadavg( )[0]).quantize( Decimal( '.00')) ))
return succeed(None)
And now I get the correct info:
$ landscape-sysinfo
System load: 0.86 Processes: 335
Usage of /: 51.0% of 211.67GB Users logged in: 1
Memory usage: 12% IPv4 address for eth0: 10.0.0.100
Swap usage: 0%