better processing
This commit is contained in:
parent
0a17d98781
commit
625b7926eb
@ -18,4 +18,10 @@ try:
|
||||
consumer.close()
|
||||
except KeyboardInterrupt:
|
||||
consumer.close()
|
||||
print(DATETIMES)
|
||||
dt = {}
|
||||
for datetime in DATETIMES:
|
||||
dts = datetime.strftime("%m/%d/%Y, %H:%M:%S")
|
||||
if dts not in dt:
|
||||
dt[strftime("%m/%d/%Y, %H:%M:%S")] = 1
|
||||
else:
|
||||
dt[strftime("%m/%d/%Y, %H:%M:%S")] +=1
|
||||
|
@ -24,4 +24,10 @@ try:
|
||||
channel.start_consuming()
|
||||
except KeyboardInterrupt:
|
||||
connection.close()
|
||||
print(DATETIMES)
|
||||
dt = {}
|
||||
for datetime in DATETIMES:
|
||||
dts = datetime.strftime("%m/%d/%Y, %H:%M:%S")
|
||||
if dts not in dt:
|
||||
dt[strftime("%m/%d/%Y, %H:%M:%S")] = 1
|
||||
else:
|
||||
dt[strftime("%m/%d/%Y, %H:%M:%S")] +=1
|
||||
|
@ -18,4 +18,10 @@ try:
|
||||
DATETIMES.append(datetime.now())
|
||||
except KeyboardInterrupt:
|
||||
socket.close()
|
||||
print(DATETIMES)
|
||||
dt = {}
|
||||
for datetime in DATETIMES:
|
||||
dts = datetime.strftime("%m/%d/%Y, %H:%M:%S")
|
||||
if dts not in dt:
|
||||
dt[strftime("%m/%d/%Y, %H:%M:%S")] = 1
|
||||
else:
|
||||
dt[strftime("%m/%d/%Y, %H:%M:%S")] +=1
|
||||
|
Loading…
Reference in New Issue
Block a user