eina - statgen (stat generation) - fix enable api to actually enable

it wasn't being enabled thus missing an entire optimization limiting
stats to "once per frame" etc. to avoid overly syscall+io happy code
from having as much of an impact

@fix
This commit is contained in:
Carsten Haitzler 2020-08-30 12:04:13 +01:00
parent 07138e1e1d
commit 5a125ccfa4
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ EAPI void
eina_file_statgen_enable(void)
{
eina_spinlock_take(&_eina_statgen_lock);
if (_eina_statgen != 0) _eina_statgen = 1;
if (_eina_statgen == 0) _eina_statgen = 1;
eina_spinlock_release(&_eina_statgen_lock);
}