diff --git a/out/static/style.css b/out/static/style.css index d748268..63967b7 100644 --- a/out/static/style.css +++ b/out/static/style.css @@ -54,9 +54,7 @@ footer .links a { color: #ddd; } #main-nav img { height: 1.2em; margin: 0 -0.4em; } #main-nav img:hover { transform: scale(1.2); } -td { padding: 0.2em 1em 0.2em 0.1em; } .squeeze { max-width: 700px; } -.wrap { word-break: break-all; } #get-appcheck:hover { color: #586472; } #get-appcheck img { width: 3em; height: 3em; margin: 0.3em; } @@ -92,6 +90,12 @@ td { padding: 0.2em 1em 0.2em 0.1em; } #pagination a { margin: 0.5em; padding: 0.2em } #pagination a.active { border: 1pt solid black; border-radius: 0.2em; } +/* app bundle */ +h2.title { margin-bottom: 0; } +p.subtitle { margin-top: 0.2em; } +.mg_lr { margin: 0 0.4em; } +.snd { color: #586472; font-size: 0.85em; } +td { padding: 0.2em 1em 0.2em 0.1em; } #meta td:nth-child(2) { font-weight: bold } /* domain tags */ diff --git a/src/html_bundle.py b/src/html_bundle.py index bbbfb97..ccac874 100755 --- a/src/html_bundle.py +++ b/src/html_bundle.py @@ -5,6 +5,9 @@ import time import math import common_lib as mylib +THRESHOLD_PERCENT_OF_LOGS = 0.7 # domain appears in % recordings +THRESHOLD_MIN_AVG_LOGS = 1.0 # at least x times in total (after %-thresh) + def seconds_to_time(seconds): minutes, seconds = divmod(seconds, 60) @@ -54,8 +57,7 @@ def gen_pie_chart(parts, classes, stroke=0.6): return ''.format(size, txt) -def gen_radial_graph(obj): - percent = obj['#logs_tracker'] / (obj['#logs_total'] or 1) +def gen_radial_graph(percent): return '
Bundle-id:{ bundle_id }
| Bundle-id: | { - bundle_id - } |
| Number of recordings: | { - obj['#rec'] - } |
| Total number of logs: | { - obj['#logs_total'] - } |
| Cumulative recording time: | { - seconds_to_time(obj['rec_len']) - } |
| Average recording time: | { - round(obj['rec_len'] / obj['#rec'], 1) - } s |
| Last updated: | |
| Number of recordings: | { obj['sum_rec'] } |
| Total number of logs: | { + obj['sum_logs'] }({ + round(obj['sum_logs_pm'], 1)} / min) |
| Average number of logs: | { + obj['avg_logs'] }({ + round(obj['avg_logs_pm'], 1)} / min) |
| Average recording time: | { + round(obj['avg_time'], 1) } sec |
| Cumulative recording time: | { + seconds_to_time(obj['sum_time']) } |