clients: use constant a day in milliseconds

This commit is contained in:
Ildar Kamalov 2023-07-03 14:29:33 +03:00
parent 9a506d3755
commit 4b9264531b
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ import { shallowEqual, useSelector } from 'react-redux';
import Card from '../ui/Card';
import { formatNumber } from '../../helpers/helpers';
import LogsSearchLink from '../ui/LogsSearchLink';
import { RESPONSE_FILTER } from '../../helpers/constants';
import { RESPONSE_FILTER, DAY } from '../../helpers/constants';
import Tooltip from '../ui/Tooltip';
const Row = ({
@ -54,7 +54,7 @@ const Counters = ({ refreshButton, subtitle }) => {
avgProcessingTime,
} = useSelector((state) => state.stats, shallowEqual);
const { t } = useTranslation();
const days = interval / (1000 * 60 * 60 * 24);
const days = interval / DAY;
const rows = [
{
label: 'dns_query',