Set fps and bandwidth to 0 on zmc exit.

pull/3990/head
Isaac Connor 2024-05-09 09:48:01 -04:00
parent 4b596b70f3
commit 5eb2a97fce
1 changed files with 1 additions and 1 deletions

View File

@ -384,7 +384,7 @@ int main(int argc, char *argv[]) {
for (std::shared_ptr<Monitor> &monitor : monitors) {
std::string sql = stringtf(
"INSERT INTO Monitor_Status (MonitorId,Status) VALUES (%u, 'NotRunning') ON DUPLICATE KEY UPDATE Status='NotRunning'",
"INSERT INTO Monitor_Status (MonitorId,Status) VALUES (%u, 'NotRunning') ON DUPLICATE KEY UPDATE Status='NotRunning',CaptureFPS=0,AnalysisFPS=0,CaptureBandwidth=0",
monitor->Id());
zmDbDo(sql);
}