diff --git a/src/gui/imageinfo_ni.cpp b/src/gui/imageinfo_ni.cpp index 6e029d24f..c689432d0 100644 --- a/src/gui/imageinfo_ni.cpp +++ b/src/gui/imageinfo_ni.cpp @@ -549,7 +549,8 @@ int CImageInfoNI::CPU_Percent(_stat *cpu) long unsigned int sys_diff = sys_new - sys_old; long unsigned int total_diff = total_new - total_old; - + if(!total_diff) + total_diff = 1; long unsigned int percent = ((float) sys_diff / (float) total_diff) * 100; if (sys_diff > 1 || total_diff > 1)