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