aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-08-16 14:38:17 -0700
committerAnton Tananaev <anton@traccar.org>2022-08-16 14:38:17 -0700
commit18addfa5b5535dbf8d48c7bbfd01c7234e0154bf (patch)
tree81178c5f15e478ebae65f8dae1afc5902af0413b
parent74a6ec5ff14e4871a0f61d05aa4cec89d0950038 (diff)
downloadtrackermap-server-18addfa5b5535dbf8d48c7bbfd01c7234e0154bf.tar.gz
trackermap-server-18addfa5b5535dbf8d48c7bbfd01c7234e0154bf.tar.bz2
trackermap-server-18addfa5b5535dbf8d48c7bbfd01c7234e0154bf.zip
Change ignition test
-rwxr-xr-xtools/test-generator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/test-generator.py b/tools/test-generator.py
index eb50d2600..d49b98744 100755
--- a/tools/test-generator.py
+++ b/tools/test-generator.py
@@ -74,7 +74,7 @@ while True:
speed = device_speed if (index % len(points)) != 0 else 0
alarm = (index % 10) == 0
battery = random.randint(0, 100)
- ignition = (index % len(points)) != 0
+ ignition = (index / 10 % 2) != 0
accuracy = 100 if (index % 10) == 0 else 0
rpm = random.randint(500, 4000)
fuel = random.randint(0, 80)