diff --git a/monitor.py b/monitor.py
index 692f227..df2fd8e 100644
--- a/monitor.py
+++ b/monitor.py
@@ -788,12 +788,15 @@ def process_message(_bmessage):
now = datetime.datetime.now()
durations = now - then
duration_in_s = durations.total_seconds()
- if dur=="0" and row[3]=="START":
+ if dur=="0" and row[3]=="START" and duration_in_s < 260:
durtx='
TX-ing | '
else:
- durtx=""+str(int(float(duration.strip())))+" | "
- if (row[3]=="START" and duration_in_s < 260) or (row[3]=="END"):
- if row[10] not in my_list:
+ if dur=="0":
+ txdur="∞"
+ else:
+ txdur=str(int(float(duration.strip())))
+ durtx=""+txdur+" | "
+ if row[10] not in my_list:
if row[11].strip().isdigit() or row[11] == "N0CALL" or row[11] == "NOCALL":
qrz = ""+row[11]+""
else:
@@ -807,8 +810,8 @@ def process_message(_bmessage):
my_list.append(row[10])
n += 1
f.write(hline+"\n")
- # n max number items in lastheard table
- if n == 15:
+ # n max number items in lastheard table
+ if n == 15:
break
f.write("
")
f.close()