mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-06-29 04:27:34 +00:00
update
This commit is contained in:
parent
c38feeb9d3
commit
a751f972b8
@ -248,8 +248,8 @@ limitations under the License. -->
|
|||||||
if (!day) {
|
if (!day) {
|
||||||
return appStore.setMaxRange([]);
|
return appStore.setMaxRange([]);
|
||||||
}
|
}
|
||||||
const gap = dayToMS(day + 1) + hour * 60 * 60 * 1000 + minute * 60 * 1000;
|
const gap = Math.max(dayToMS(day), hour * 60 * 60 * 1000, minute * 60 * 1000);
|
||||||
const dates: Date[] = [new Date(new Date().getTime() - gap), new Date()];
|
const dates: Date[] = [new Date(new Date().getTime() - gap - dayToMS(1)), new Date()];
|
||||||
appStore.setMaxRange(dates);
|
appStore.setMaxRange(dates);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user