adblock: update 2.0.3

* fixed adblock statistics in CC
* print additional list details in adblock statistics

Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
Dirk Brenken
2016-12-30 22:21:00 +01:00
parent c842884168
commit 412f1f58cc
3 changed files with 40 additions and 6 deletions
+25 -2
View File
@@ -144,8 +144,31 @@ config for curl (download errors with default ssl backend!):
**example to receive adblock statistics via ubus:**
<pre><code>
ubus call service list '{"name":"adblock_stats"}' | jsonfilter -e '@.*.instances.stats.env'
This will output the overall domain count and the last runtime as JSON, i.e. { "blocked_domains": "136159", "last_rundate": "18.12.2016 20:49:03" }
ubus call service list '{"name":"adblock_stats"}'
This will output the active block lists, the overall domain count and the last runtime as JSON, i.e.:
{
"adblock_stats": {
"instances": {
"stats": {
"running": false,
"command": [
""
],
"data": {
"active_lists": [
{
"adaway": "409",
"yoyo": "2368",
"disconnect": "3198"
}
],
"blocked_domains": "5975",
"last_rundate": "30.12.2016 21:03:45"
}
}
}
}
}
</code></pre>
**example cronjob for a regular block list update (/etc/crontabs/root):**