all: upd chlog

This commit is contained in:
Stanislav Chzhen 2024-03-07 14:41:45 +03:00
parent 9d6154aef8
commit ca29ee8e41
2 changed files with 5 additions and 1 deletions

View File

@ -61,6 +61,7 @@ NOTE: Add new changes BELOW THIS COMMENT.
### Fixed
- Statistics for 7 days displayed by day on the dashboard graph ([#6712]).
- Missing IP addresses in logs when querying for domain names from the ignore
lists.
- Wrong algorithm for caching bootstrapped upstream addresses ([#6723]).
@ -74,6 +75,7 @@ NOTE: Add new changes BELOW THIS COMMENT.
[#6610]: https://github.com/AdguardTeam/AdGuardHome/issues/6610
[#6679]: https://github.com/AdguardTeam/AdGuardHome/issues/6679
[#6711]: https://github.com/AdguardTeam/AdGuardHome/issues/6711
[#6712]: https://github.com/AdguardTeam/AdGuardHome/issues/6712
[go-toolchain]: https://go.dev/blog/toolchain
[go-1.21.8]: https://groups.google.com/g/golang-announce/c/5pwGVUPoMbg

View File

@ -55,7 +55,9 @@ const Dashboard = ({
return t('stats_disabled_short');
}
if (stats.timeUnits === TIME_UNITS.HOURS && stats.interval === 604800000) {
const msIn7Days = 604800000;
if (stats.timeUnits === TIME_UNITS.HOURS && stats.interval === msIn7Days) {
return t('for_last_days', { count: msToDays(stats.interval) });
}