diff options
author | ninioe <ninioe@gmail.com> | 2016-08-07 09:56:04 +0300 |
---|---|---|
committer | ninioe <ninioe@gmail.com> | 2016-08-07 09:56:04 +0300 |
commit | c1c5a5fd34402a4e9b0840a7b960c38371dd9748 (patch) | |
tree | 1c04413e2f2cc450c4be23ef459597b2b4e9f776 /tools/test-generator.py | |
parent | e26d81c7430d8668b3af1bbf15672f06a855d6d0 (diff) | |
parent | dea7617218de2cbc7ebd930b4342aa35ffedcd8b (diff) | |
download | traccar-server-c1c5a5fd34402a4e9b0840a7b960c38371dd9748.tar.gz traccar-server-c1c5a5fd34402a4e9b0840a7b960c38371dd9748.tar.bz2 traccar-server-c1c5a5fd34402a4e9b0840a7b960c38371dd9748.zip |
Merge remote-tracking branch 'refs/remotes/tananaev/master'
# Conflicts:
# web/app/view/LoginController.js
Diffstat (limited to 'tools/test-generator.py')
-rwxr-xr-x | tools/test-generator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/test-generator.py b/tools/test-generator.py index b4edbfbaf..41a32a565 100755 --- a/tools/test-generator.py +++ b/tools/test-generator.py @@ -37,7 +37,7 @@ def send(conn, lat, lon, course, alarm): if alarm: params = params + (('alarm', 'sos'),) conn.request('GET', '?' + urllib.urlencode(params)) - conn.getresponse() + conn.getresponse().read() def course(lat1, lon1, lat2, lon2): lat1 = lat1 * math.pi / 180 @@ -58,4 +58,4 @@ while True: alarm = ((index % 10) == 0) send(conn, lat1, lon1, course(lat1, lon1, lat2, lon2), alarm) time.sleep(period) - index += 1
\ No newline at end of file + index += 1 |