clients: use constant a day in milliseconds
This commit is contained in:
parent
9a506d3755
commit
4b9264531b
|
@ -6,7 +6,7 @@ import { shallowEqual, useSelector } from 'react-redux';
|
||||||
import Card from '../ui/Card';
|
import Card from '../ui/Card';
|
||||||
import { formatNumber } from '../../helpers/helpers';
|
import { formatNumber } from '../../helpers/helpers';
|
||||||
import LogsSearchLink from '../ui/LogsSearchLink';
|
import LogsSearchLink from '../ui/LogsSearchLink';
|
||||||
import { RESPONSE_FILTER } from '../../helpers/constants';
|
import { RESPONSE_FILTER, DAY } from '../../helpers/constants';
|
||||||
import Tooltip from '../ui/Tooltip';
|
import Tooltip from '../ui/Tooltip';
|
||||||
|
|
||||||
const Row = ({
|
const Row = ({
|
||||||
|
@ -54,7 +54,7 @@ const Counters = ({ refreshButton, subtitle }) => {
|
||||||
avgProcessingTime,
|
avgProcessingTime,
|
||||||
} = useSelector((state) => state.stats, shallowEqual);
|
} = useSelector((state) => state.stats, shallowEqual);
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const days = interval / (1000 * 60 * 60 * 24);
|
const days = interval / DAY;
|
||||||
const rows = [
|
const rows = [
|
||||||
{
|
{
|
||||||
label: 'dns_query',
|
label: 'dns_query',
|
||||||
|
|
Loading…
Reference in New Issue