Limit blocked percent to 2 decimal points

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
Mcat12
2017-07-04 12:06:23 -04:00
parent 3eee16f7d1
commit 91f79d5bd8
+1 -1
View File
@@ -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()
});
})