summaryrefslogtreecommitdiff
path: root/src/tests/efreet
diff options
context:
space:
mode:
authorSebastian Dransfeld <sebastian.dransfeld@sintef.no>2013-10-14 11:57:01 +0200
committerSebastian Dransfeld <sebastian.dransfeld@sintef.no>2013-10-14 13:14:55 +0200
commit6b18d7b80a45443e5d237bec0af1560e341e23f6 (patch)
tree438ec685d18ee3b25a4b09f7cba67770d0aadbcd /src/tests/efreet
parent7f303060311e7e209f8acdc62101fa5064be389c (diff)
efreet: Check if count != 0
CID 1039434
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();