use all timestamps available to build average time

This commit is contained in:
Athou
2013-05-30 13:58:37 +02:00
parent 2ba1614f1d
commit 7df071b023

View File

@@ -207,12 +207,8 @@ public class FeedUtils {
public static List<Long> getSortedTimestamps(List<FeedEntry> entries) {
List<Long> timestamps = Lists.newArrayList();
int i = 0;
for (FeedEntry entry : entries) {
timestamps.add(entry.getUpdated().getTime());
i++;
if (i >= 10)
break;
}
Collections.sort(timestamps);
Collections.reverse(timestamps);