mirror of
https://github.com/gosticks/web.git
synced 2026-10-07 07:07:07 +00:00
Limit blocked percent to 2 decimal points
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
@@ -20,7 +20,7 @@ class SummaryStats extends Component {
|
||||
this.setState({
|
||||
blockedQueries: res.ads_blocked_today.toLocaleString(),
|
||||
totalQueries: res.dns_queries_today.toLocaleString(),
|
||||
percentBlocked: res.ads_percentage_today.toLocaleString() + "%",
|
||||
percentBlocked: res.ads_percentage_today.toFixed(2).toLocaleString() + "%",
|
||||
gravityDomains: res.domains_being_blocked.toLocaleString()
|
||||
});
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user