Problem with GDesklet.

Asked by walnut

Hi, I'm writing to ask support about a problem with my pc when I open GDesklet. Here below the message that appear during start program.

Runtime Error
/usr/share/gdesklets/Displays/sidecandy-ram/SideCandyRAM.display

An error occured while executing a desklet.

This are the details

float division
/usr/share/gdesklets/Displays/sidecandy-ram/SideCandyRAM.display
   24
   25 def get_mem():
   26 Dsp.swap_used.value = "%s / %s"
%(mem_format(sys.swap.used),mem_format(sys.swap.total))
   27 Dsp.memory_used.value = "%s / %s / %s" %(mem_format(sys.memory.used-
sys.memory.cached-
sys.memory.buffer),mem_format(sys.memory.used),mem_format(sys.memory.total))
   28 Dsp.gauge_mem.fill = int((sys.memory.used/float(sys.memory.total))*100)
> 29 Dsp.gauge_swap.fill = int((sys.swap.used/float(sys.swap.total))*100)
   30 Dsp.gauge_mem_true.fill = int(((sys.memory.used-sys.memory.cached-
sys.memory.buffer)/float(sys.memory.total))*100)
   31 Dsp.show_ram.value = mem_load(var_a,var_b)
   32 add_timer(refresh, get_mem)
   33
   34 add_timer(0, get_mem)
   35

As you can see line number 29 is indicated as the main problem.
Could you help me?
Thanks in advance.

Roberto

P.s.: I forgot to say that this problem maybe become by an error I made. I deleted my Linux swap :-((( partition during an operation I was made on my flash disk (I was canceling two partitions I created). When I realized what gone, I replace the partition with Gnome partition Editor.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gdesklets Edit question
Assignee:
No assignee Edit question
Solved by:
walnut
Solved:
Last query:
Last reply:
Revision history for this message
walnut (walnutcreeck) said :
#1

Hi there to all. I would like to answer by myself to my question because I come to fix my problem.
Practically a had my swap partition de-activated. I view this, only checking my system with Gnome partiotin editor and I had only to activate the swap partition. Now the problem is gone away.
Thanks, I hope to give help to anyone who could have the same problem.
Bye.