summaryrefslogtreecommitdiff
path: root/src/tests/efreet
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/efreet')
-rw-r--r--src/tests/efreet/efreet_icon_cache_dump.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tests/efreet/efreet_icon_cache_dump.c b/src/tests/efreet/efreet_icon_cache_dump.c
index d1cb126..321edda 100644
--- a/src/tests/efreet/efreet_icon_cache_dump.c
+++ b/src/tests/efreet/efreet_icon_cache_dump.c
@@ -55,7 +55,9 @@ dump(Efreet_Icon_Theme *theme)
55 free(keys); 55 free(keys);
56 56
57 start = ecore_time_get() - start; 57 start = ecore_time_get() - start;
58 avg = start / count; 58 avg = 0;
59 if (count > 0)
60 avg = start / count;
59 printf("read: %s - %u paths (time: %f) (avg %f)\n", theme->name.internal, count, start, avg); 61 printf("read: %s - %u paths (time: %f) (avg %f)\n", theme->name.internal, count, start, avg);
60 eet_close(ef); 62 eet_close(ef);
61 eet_clearcache(); 63 eet_clearcache();