Callers rely on the returned snapshot list being sorted by creation
time, so let's document this fact.
return NUM_COMPARE(s2->creation_time, s1->creation_time);
}
return NUM_COMPARE(s2->creation_time, s1->creation_time);
}
+/* The returned snapshot list is sorted by creation time. */
void get_snapshot_list(struct snapshot_list *sl, int unit_interval,
int num_intervals)
{
void get_snapshot_list(struct snapshot_list *sl, int unit_interval,
int num_intervals)
{