Application indicators keep shifting with CPU/Mem updates

Bug #743651 reported by Sohail Mirza
64
This bug affects 12 people
Affects Status Importance Assigned to Milestone
Indicator Sysmonitor
Fix Released
Undecided
Unassigned

Bug Description

As the CPU usage flips between single and double digit (and presumably also triple digit values), the application indicators that appear to the left of indicator-sysmonitor shift left and right by a few pixels. This turns out to be quite distracting to continually see peripheral movement in the top right-hand corner of the screen.

The attached screenshot illustrates the problem.

Related branches

Revision history for this message
Sohail Mirza (mirzmaster) wrote :
Changed in indicator-sysmonitor:
status: New → Confirmed
Revision history for this message
Alex Eftimie (alexeftimie) wrote :

Hi Michael, thank you for the fix. Can you merge the branch with latest commits from trunk, and propose it for merging? Many thanks.

Revision history for this message
Alex Eftimie (alexeftimie) wrote :

The problem still occurs after the merge, I can't mark this as fixed.

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,
        }

Revision history for this message
geoffrey (gkgeko) wrote :

+1 for hamlet's proposed solution (add 0 before single digit), this would solve the problem for me.

Revision history for this message
Jack O'Connor (gnujack) wrote :

+1 for hamlet's solution. Any idea when this will be implemented? Many thanks.

Revision history for this message
Alex Eftimie (alexeftimie) wrote :

should be fixed in 0.3.1

Changed in indicator-sysmonitor:
status: Confirmed → Fix Released
Revision history for this message
dani_bs (sdaniele78) wrote :

It is fixed the text about {cpu}, but the same problem is for {net}. I suggest
%d000MB|KB|##/s

where ## is for "bytes" and can be:
- 2 spaces
- BB
- BY
- BT
- :)
- ...

because it is very distracting.
Thanks alot for indicator,

Daniele

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.