Comment 4 for bug 743651

Revision history for this message
dayf (dayf) wrote :

not too nice but imo better than jumping indicator positions: preceding zero, i.e. in /usr/bin/indicator-sysmonitor ...

    def _fetch(self):
        mem_pct = self._fetch_mem()
        cpu_pct = self._fetch_cpu()
        return {'cpu': '%02.0f%%' % cpu_pct,
            'mem': '%02.0f%%' % mem_pct,
        }