in src/main/groovy/com/epam/esp/elasticsearch/comparator/TimestampIndexNameComparator.groovy [29:43]
int compare(String o1, String o2) {
try {
if (!compatibilityCheck(o1, o2)) return 0
long ts1 = getTimestamp(o1) + offset
long ts2
if (o2 == null) ts2 = System.currentTimeMillis() else ts2 = getTimestamp(o2)
if (ts1 < ts2) return -1
if (ts1 > ts2) return 1
return 0
} catch (Exception e) {
return 0
}
}