SideCandy Ram/Swap crashes, when user has no swap at all
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gDesklets |
Invalid
|
Low
|
MarioGonzalez |
Bug Description
Hi.
I am using ubuntu and I do not have a swap partition at all. When I launch the SideCandy RAM/Swap gdesklet, it crashes with this error:
float division
/usr/share/
24
25 def get_mem():
26 Dsp.swap_used.value = "%s / %s"
%(mem_format(
27 Dsp.memory_
sys.memory.cached-
sys.memory.
28 Dsp.gauge_mem.fill = int((sys.
> 29 Dsp.gauge_swap.fill = int((sys.
30 Dsp.gauge_
sys.memory.
31 Dsp.show_ram.value = mem_load(
32 add_timer(refresh, get_mem)
33
34 add_timer(0, get_mem)
35
It would be cool, if I can use the gdesklet only for my ram.
could you please try a recent version from bzr? many bugs have been fixed so
far.