mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-ui: ignore negative and 0 averages
This ensures that we only calculate averages for marks that have a valid duration. We also need a new field for the number of averages we added so that we don't skew the results.
This commit is contained in:
@ -32,6 +32,7 @@ typedef struct
|
||||
gint64 max;
|
||||
gint64 min;
|
||||
gint64 avg;
|
||||
guint64 avg_count;
|
||||
} SysprofMarkStat;
|
||||
|
||||
SysprofMarkStat *_sysprof_mark_stat_new (const gchar *name);
|
||||
|
||||
Reference in New Issue
Block a user