From a0707a1cf4583f7f00a6fbce2f50fecd09ca7be0 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 27 Sep 2020 02:56:13 +0200 Subject: Fix multiple items using the same timestamp if updated at the same time They should use their download finished time instead --- src/html.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/html.c') diff --git a/src/html.c b/src/html.c index 6442188..b7abbdf 100644 --- a/src/html.c +++ b/src/html.c @@ -379,6 +379,8 @@ static int download_html_items_in_reverse(const char *plugin_filepath, Buffer *d break; added_download_items[download_item_index] = download_items_it; + // TODO: What if the download is so fast two items have the same timestamp? Maybe substract by MAX_UPDATE_ITEMS and then add 1 each loop, + // or use milliseconds/microseconds timestamps? timestamps[download_item_index] = time(NULL); ++download_item_index; } -- cgit v1.2.3