commit 2018-06-06 07:16:59.103484

This commit is contained in:
Jenkins
2018-06-06 10:17:04 +03:00
parent 1dce5fd8ac
commit 081635809d
10 changed files with 14 additions and 14 deletions

View File

@@ -91,13 +91,13 @@ var DataPulseProvider = /** @class */ (function () {
export { DataPulseProvider };
function periodLengthSeconds(resolution, requiredPeriodsCount) {
var daysCount = 0;
if (resolution === 'D') {
if (resolution === 'D' || resolution === '1D') {
daysCount = requiredPeriodsCount;
}
else if (resolution === 'M') {
else if (resolution === 'M' || resolution === '1M') {
daysCount = 31 * requiredPeriodsCount;
}
else if (resolution === 'W') {
else if (resolution === 'W' || resolution === '1W') {
daysCount = 7 * requiredPeriodsCount;
}
else {