From: Sebastian Dransfeld Date: Mon, 14 Oct 2013 09:57:01 +0000 (+0200) Subject: efreet: Check if count != 0 X-Git-Tag: submit/devel/efl/20131029.075644~78 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b18d7b80a45443e5d237bec0af1560e341e23f6;p=platform%2Fupstream%2Fefl.git efreet: Check if count != 0 CID 1039434 --- 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) free(keys); start = ecore_time_get() - start; - avg = start / count; + avg = 0; + if (count > 0) + avg = start / count; printf("read: %s - %u paths (time: %f) (avg %f)\n", theme->name.internal, count, start, avg); eet_close(ef); eet_clearcache();