Inspector: fix clean mode

Even if duplicate actions are removed, the delay should remain the same
between two actions, no matter how many actions have been removed
between.
master
Daniel Zaoui 4 years ago
parent da73209747
commit 82cfa8378a
  1. 8
      src/bin/inspect.c

@ -1373,8 +1373,12 @@ main(int argc, char *argv[])
Eina_List *itr, *itr2;
EINA_LIST_FOREACH_SAFE(unit->actions, itr, itr2, act)
{
if (_is_hook_duplicate(act, eina_list_data_get(eina_list_prev(itr))))
unit->actions = eina_list_remove_list(unit->actions, itr);
Exactness_Action *prev_act = eina_list_data_get(eina_list_prev(itr));
if (_is_hook_duplicate(act, prev_act))
{
prev_act->delay_ms += act->delay_ms;
unit->actions = eina_list_remove_list(unit->actions, itr);
}
}
EINA_LIST_REVERSE_FOREACH_SAFE(unit->actions, itr, itr2, act)
{

Loading…
Cancel
Save