mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 17:09:03 +08:00
removes 1day and adds 5mins
This commit is contained in:
parent
a416767950
commit
3318ec8c38
@ -10,5 +10,5 @@ export const DefaultOptions = [
|
|||||||
|
|
||||||
export const ServiceMapOptions = [
|
export const ServiceMapOptions = [
|
||||||
{ value: "1min", label: "Last 1 min" },
|
{ value: "1min", label: "Last 1 min" },
|
||||||
{ value: "1day", label: "Last 1 day" },
|
{ value: "5min", label: "Last 5 min" },
|
||||||
];
|
];
|
||||||
|
@ -27,6 +27,10 @@ export const updateTimeInterval = (
|
|||||||
maxTime = Date.now() * 1000000; // in nano sec
|
maxTime = Date.now() * 1000000; // in nano sec
|
||||||
minTime = (Date.now() - 1 * 60 * 1000) * 1000000;
|
minTime = (Date.now() - 1 * 60 * 1000) * 1000000;
|
||||||
break;
|
break;
|
||||||
|
case "5min":
|
||||||
|
maxTime = Date.now() * 1000000; // in nano sec
|
||||||
|
minTime = (Date.now() - 5 * 60 * 1000) * 1000000;
|
||||||
|
break;
|
||||||
|
|
||||||
case "15min":
|
case "15min":
|
||||||
maxTime = Date.now() * 1000000; // in nano sec
|
maxTime = Date.now() * 1000000; // in nano sec
|
||||||
|
Loading…
x
Reference in New Issue
Block a user