-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
open history with open end date by default #329
base: master
Are you sure you want to change the base?
Conversation
also refactor chunk splitting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Было бы отлично в интерфейсе, если конечное время не установлено, писать 'Текущее время' или 'Сейчас'. Иначе не ясно сходу, что означает пустая дата. Кстати, если задать время конца без даты, оно фактически сбрасывается. Тогда уж не давать задавать время, если дата не задана.
params.timestamp.lt = endDate.getTime() / 1000/// + 86400; | ||
var intervalMs = endDate - startDate; // duration of requested interval, in ms | ||
} else { | ||
console.log(new Date()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Это от отладки осталось?
@@ -1,3 +1,9 @@ | |||
wb-mqtt-homeui (2.37.3) stable; urgency=medium |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2.37.1 ?
Но вообще это же новая фича. Я бы сделал 2.38.0
if (diffDays <= days) return [_start, end]; | ||
var ret = [_start]; | ||
var iter = Math.floor(diffDays / days) + 1; | ||
console.log(iter); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Debug?
if (diffDates <= days) return [start,end]; | ||
var ret = [start]; | ||
var iter = Math.floor(diffDates / days) + 1; | ||
var _start = start ? start : new Date(+_end - 24 * 60 * 60 * 1000 * rangInterval); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
24 * 60 * 60 * 1000
стоит в константу обернуть, а то оно в 3-х местах используется
also refactor chunk splitting