forked from enlightenment/efl
edje_cc out ... fix theoretical div by zero...
if files size was 0... which would basically make a lot fail before... it could be a divide by zero. fix and just assume minimum size of 1. fix CID 1371127
This commit is contained in:
parent
17d33c7138
commit
d62f7d72e6
|
@ -2612,9 +2612,12 @@ data_thread_authors(void *data, Ecore_Thread *thread EINA_UNUSED)
|
|||
}
|
||||
else
|
||||
{
|
||||
double fsize = eina_file_size_get(f);
|
||||
|
||||
if (fsize < 0.0) fsize = 0.0;
|
||||
INF("Wrote %9i bytes (%4iKb) for \"%s\" authors entry compress: [real: %2.1f%%]",
|
||||
bytes, (bytes + 512) / 1024, license,
|
||||
100 - (100 * (double)bytes) / ((double)(eina_file_size_get(f))));
|
||||
100.0 - ((100.0 * (double)bytes) / fsize));
|
||||
}
|
||||
|
||||
eina_file_map_free(f, m);
|
||||
|
|
Loading…
Reference in New Issue