setTimePeriod
This commit is contained in:
1 parent
04f2d8c8d0
commit
4158dcb39f
1 file changed
+8
-6
+8
-6
@@ -185,6 +185,13 @@
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if (timePeriod === _1_HOUR_IN_MILISECONDS) {
|
||||
|
||||
fileCursorCache.setDatetime(datetime);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function setDatetime(newDatetime) {
|
||||
@@ -198,15 +205,10 @@
|
||||
|
||||
if (currentDate !== newDate) {
|
||||
|
||||
if (timePeriod < _1_HOUR_IN_MILISECONDS) {
|
||||
if (timePeriod <= _1_HOUR_IN_MILISECONDS) {
|
||||
|
||||
fileCursorCache.setDatetime(newDatetime);
|
||||
|
||||
/*
|
||||
recalculateCandles();
|
||||
|
||||
console.log("setDatetime");
|
||||
*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user