Skip to content

Commit

Permalink
all: upd chlog
Browse files Browse the repository at this point in the history
  • Loading branch information
schzhn committed Mar 7, 2024
1 parent 9d6154a commit ca29ee8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]).
Expand All @@ -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
Expand Down
4 changes: 3 additions & 1 deletion client/src/components/Dashboard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) });
}

Expand Down

0 comments on commit ca29ee8

Please sign in to comment.