mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-gtk: fix usec/msec groupings
This commit is contained in:
@ -166,9 +166,9 @@ sysprof_time_label_set_internal (SysprofTimeLabel *self,
|
||||
|
||||
if (t == 0)
|
||||
str[0] = 0;
|
||||
else if (t < SYSPROF_NSEC_PER_SEC/1000)
|
||||
else if (t < 1000000)
|
||||
g_snprintf (str, sizeof str, "%.3lfμs", t/1000.);
|
||||
else if (t < SYSPROF_NSEC_PER_SEC/1000000)
|
||||
else if (t < SYSPROF_NSEC_PER_SEC)
|
||||
g_snprintf (str, sizeof str, "%.3lfms", t/1000000.);
|
||||
else
|
||||
g_snprintf (str, sizeof str, "%.3lfs", t/(double)SYSPROF_NSEC_PER_SEC);
|
||||
|
||||
Reference in New Issue
Block a user