millisceonds
This commit is contained in:
@@ -339,7 +339,7 @@ struct StatsController: RouteCollection {
|
||||
if !(stats.totalWins == 0 && stats.totalLosses == 0) {
|
||||
|
||||
let date = self.createDate(day: first.day, month: first.month, year: first.year)
|
||||
cumulativeWinLossRatios.append(DataPoint(x:date.timeIntervalSince1970 , y: (totalWins/totalLosses).truncate(places: 2)))
|
||||
cumulativeWinLossRatios.append(DataPoint(x:date.timeIntervalSince1970*1000 , y: (totalWins/totalLosses).truncate(places: 2)))
|
||||
}
|
||||
allDailyStats.append(DailyStats(day: first.day, month: first.month, year: first.year, stats: stats, cumulativeRatio: self.getRatio(num: totalWins, den: totalLosses)))
|
||||
return getRatios(remaining, allDailyStats:&allDailyStats, cumulativeWinLossRatios:&cumulativeWinLossRatios, eventLoop: eventLoop)
|
||||
|
||||
Reference in New Issue
Block a user