mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Labels update
This commit is contained in:
parent
3d97dccf06
commit
efebaa9a20
1 changed files with 8 additions and 8 deletions
|
|
@ -233,13 +233,13 @@ pdf.image("img/ntop.png", x=140, y=8, w=68.2, h=17.8)
|
|||
pdf.set_font("Helvetica", "B", 14)
|
||||
pdf.set_text_color(r= 0, g= 0, b = 0)
|
||||
pdf.ln(9)
|
||||
pdf.cell(w=0, h=10, txt="HOST INFO", ln=1)
|
||||
pdf.cell(w=0, h=10, txt="NTOPNG INFO", ln=1)
|
||||
pdf.set_font("Helvetica", "", 11)
|
||||
pdf.cell(w=0, h=5, txt=f"Host: {ntopng_url}")
|
||||
pdf.cell(w=0, h=5, txt=f"URL: {ntopng_url}")
|
||||
pdf.ln(5)
|
||||
pdf.cell(w=0, h=5, txt=f"Timestamp: {time.strftime('%d-%m-%Y %H:%M:%S', time.localtime(actual_ts))}")
|
||||
pdf.cell(w=0, h=5, txt=f"Date: {time.strftime('%d-%m-%Y %H:%M:%S', time.localtime(actual_ts))}")
|
||||
pdf.ln(5)
|
||||
pdf.cell(w=0, h=5, txt=f"# Interfaces: {interfaces_count}")
|
||||
pdf.cell(w=0, h=5, txt=f"Number of Interfaces: {interfaces_count}")
|
||||
pdf.ln(7)
|
||||
|
||||
## 24hr stats ##
|
||||
|
|
@ -247,13 +247,13 @@ pdf.set_font("Helvetica", "B", 14)
|
|||
pdf.cell(w=0, h=10, txt="24h STATS")
|
||||
pdf.ln(5)
|
||||
pdf.set_font("Helvetica", "", 11)
|
||||
pdf.cell(w=(pw/2), h=(ch/4), txt=f"Flows: {flows}")
|
||||
pdf.cell(w=(pw/2), h=(ch/4), txt=f"Active Flows: {flows}")
|
||||
pdf.ln(5)
|
||||
pdf.cell(w=(pw/2), h=(ch/4), txt=f"Hosts count: {host_num}")
|
||||
pdf.cell(w=(pw/2), h=(ch/4), txt=f"Number of Hosts: {host_num}")
|
||||
pdf.ln(5)
|
||||
pdf.cell(w=(pw/2), h=(ch/4), txt=f"Local hosts count: {local_hosts_num}")
|
||||
pdf.cell(w=(pw/2), h=(ch/4), txt=f"Number of Local Hosts: {local_hosts_num}")
|
||||
pdf.ln(5)
|
||||
pdf.cell(w=(pw/2), h=(ch/4), txt=f"UP/DOWN MB: {uploaded:.3f}/{downloaded:.3f}")
|
||||
pdf.cell(w=(pw/2), h=(ch/4), txt=f"Data Up/Down: {uploaded:.3f}/{downloaded:.3f} MB")
|
||||
pdf.ln(5)
|
||||
pdf.cell(w=(pw/2), h=(ch/4), txt=f"Flows errors: {flows_errors}")
|
||||
pdf.ln(5)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue