commit | 6132d42fbd73b6faabedb6683d4b5f4c524777de | [log] [tgz] |
---|---|---|
author | Tim Ward <timothyjward@apache.org> | Thu Jun 17 10:18:59 2021 +0100 |
committer | Tim Ward <timothyjward@apache.org> | Thu Jun 17 10:18:59 2021 +0100 |
tree | 6edb07cac3e10372bfe61eca016bc15f9bffb2f2 | |
parent | 28e77c5d4fcbf3a0128eb1aaa8b6204f8cc214c2 [diff] |
Improve Temperature Generator scaling The simulated temperature sensors use one thread per service provider. This causes sensiNact to have very high resource usage for large numbers of sensors. This fix changes the temperature generator to use a small threadpool and scheduling, rather than separate threads and sleeps, reducing overhead considerably. Signed-off-by: Tim Ward <timothyjward@apache.org>