From ebf982b747214063aa814ae3473375b313d0887f Mon Sep 17 00:00:00 2001 From: sanke Date: Mon, 24 Sep 2018 15:57:36 +0300 Subject: [PATCH] fix round -> ceil #11 --- src/target.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/target.ts b/src/target.ts index 7d923d6..004b6c3 100644 --- a/src/target.ts +++ b/src/target.ts @@ -54,7 +54,7 @@ export class Target { public async export() { this.exportedRows = 0; - this.days = Math.round((this.to - this.from) / MS_IN_DAY); + this.days = Math.ceil((this.to - this.from) / MS_IN_DAY); this.day = 0; this.initCsvStream();