Inspect: fix timestamps printing

master
Daniel Zaoui 5 years ago
parent 1086aa6885
commit 5da255c3e8
  1. 10
      src/bin/inspect.c

@ -657,10 +657,6 @@ main(int argc, char *argv[])
list->variant_list = eina_list_remove_list(list->variant_list, itr);
}
}
if (!list->first_timestamp)
{
list->first_timestamp = evt_time_get(0, eina_list_data_get(list->variant_list));
}
write_file = EINA_TRUE;
}
@ -700,15 +696,11 @@ main(int argc, char *argv[])
{
Variant_st *v;
Eina_List *itr;
printf("First timestamp: ");
if (list->first_timestamp) printf("%u\n", list->first_timestamp);
else printf("undefined\n");
EINA_LIST_FOREACH(list->variant_list, itr, v)
{
char specific_output[1024];
unsigned int timestamp = evt_time_get(0, v);
printf("%.3f: ", (list->first_timestamp ? timestamp - list->first_timestamp : timestamp) / 1000.0);
printf("%s", _event_name_get(v));
printf("%.3f: %s", timestamp / 1000.0, _event_name_get(v));
_event_specific_info_get(v, specific_output);
if (*specific_output) printf(" - %s", specific_output);
printf("\n");

Loading…
Cancel
Save