From e888f566b6a8da0b0eb30ec52b21fc2d5abbd169 Mon Sep 17 00:00:00 2001 From: Ruben Date: Fri, 5 Jan 2018 01:07:20 +0100 Subject: [PATCH] add duration --- scan_faces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scan_faces.py b/scan_faces.py index 76f54e7..8dc283f 100755 --- a/scan_faces.py +++ b/scan_faces.py @@ -134,7 +134,7 @@ while True: lastFaceTime = end - content = urllib2.urlopen("https://artstats.rubenvandeven.com/artwork1/views.php?time=%d&count=%d&total=%d" % (int(time.time()), len(faces), int(totalUse)) ).read() + content = urllib2.urlopen("https://artstats.rubenvandeven.com/artwork1/views.php?time=%d&count=%d&total=%d&duration=%f" % (int(time.time()), len(faces), int(totalUse), scanDuration) ).read() #~ if end - start < frameTimeDelta: