Index: gkrellm-2.3.2/src/sysdeps/linux.c =================================================================== --- gkrellm-2.3.2.orig/src/sysdeps/linux.c 2009-03-11 12:34:09.004369667 -0600 +++ gkrellm-2.3.2/src/sysdeps/linux.c 2009-03-11 12:34:34.940367495 -0600 @@ -1873,7 +1873,8 @@ } else { - percent = charge_now * 100 / charge_full; + if (charge_full == 0) percent = 0; + else percent = charge_now * 100 / charge_full; } /* Get charging status. */