fix error days
This commit is contained in:
parent
282f11a7c2
commit
e320eb29c2
|
@ -54,12 +54,12 @@ 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 rows = [
|
const rows = [
|
||||||
{
|
{
|
||||||
label: 'dns_query',
|
label: 'dns_query',
|
||||||
count: numDnsQueries,
|
count: numDnsQueries,
|
||||||
tooltipTitle: interval === 1 ? 'number_of_dns_query_24_hours' : t('number_of_dns_query_days', { count: interval }),
|
tooltipTitle: days === 1 ? 'number_of_dns_query_24_hours' : t('number_of_dns_query_days', { count: days }),
|
||||||
response_status: RESPONSE_FILTER.ALL.QUERY,
|
response_status: RESPONSE_FILTER.ALL.QUERY,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue