Development
This commit is contained in:
parent
14340a5321
commit
8c2f10330d
1 changed files with 1 additions and 1 deletions
|
|
@ -470,7 +470,7 @@ def _ddns_log_tail():
|
||||||
shown = len(tail)
|
shown = len(tail)
|
||||||
hidden = total - shown
|
hidden = total - shown
|
||||||
pct = min(100, round(size_kb / log_max_kb * 100)) if log_max_kb else 0
|
pct = min(100, round(size_kb / log_max_kb * 100)) if log_max_kb else 0
|
||||||
left = f'Showing last {shown} lines ({hidden} lines not shown)' if hidden > 0 else f'Showing {shown} lines'
|
left = f'Showing {shown} of {total} lines ({hidden} not shown)' if hidden > 0 else f'Showing {shown} of {total} lines'
|
||||||
right = f'Log file size: {size_kb:.1f} KB ({pct}% of max)'
|
right = f'Log file size: {size_kb:.1f} KB ({pct}% of max)'
|
||||||
summary = (f'<div class="text-muted" style="display:flex;justify-content:space-between;margin-top:0.5em;">'
|
summary = (f'<div class="text-muted" style="display:flex;justify-content:space-between;margin-top:0.5em;">'
|
||||||
f'<span>{left}</span><span>{right}</span></div>')
|
f'<span>{left}</span><span>{right}</span></div>')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue