From fa415abf954777fd0064fd5cbe222f34126bd8ed Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 10 Feb 2019 12:05:40 +0100 Subject: [PATCH] get_snapshot_list(): Add comment about sorting. Callers rely on the returned snapshot list being sorted by creation time, so let's document this fact. --- snap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snap.c b/snap.c index 8de76d4..da95c1f 100644 --- a/snap.c +++ b/snap.c @@ -146,7 +146,7 @@ static int compare_snapshots(const void *a, const void *b) 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) { -- 2.39.2