Skip to content
Snippets Groups Projects
Commit 919c4491 authored by edileuton's avatar edileuton
Browse files

windows-collect: Fix date format in the traffic file


Signed-off-by: default avataredileuton <edileuton@gmail.com>
parent 57e481fe
No related branches found
No related tags found
No related merge requests found
......@@ -102,7 +102,7 @@ try:
currentDate = date.today() - timedelta(days=1)
else:
currentDate = date.today()
trafficFile = getTrafficFile(currentDate.strftime("%y-%m-%d"))
trafficFile = getTrafficFile(currentDate.strftime("%Y-%m-%d"))
trafficFile.write(str(intervalId)+ " " + rxPackages + " " + rxBytes + " " + txPackages + " " + txBytes +"\n")
trafficFile.close()
except:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment