mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-03-16 21:08:01 -04:00
Reset CaptureBandwidth to 0 on startup and after failed connection
This commit is contained in:
@@ -248,8 +248,8 @@ int main(int argc, char *argv[]) {
|
||||
monitor->SetHeartbeatTime(now);
|
||||
|
||||
std::string sql = stringtf(
|
||||
"INSERT INTO Monitor_Status (MonitorId,Status,CaptureFPS,AnalysisFPS)"
|
||||
" VALUES (%u, 'Running',0,0) ON DUPLICATE KEY UPDATE Status='Running',CaptureFPS=0,AnalysisFPS=0",
|
||||
"INSERT INTO Monitor_Status (MonitorId,Status,CaptureFPS,AnalysisFPS,CaptureBandwidth)"
|
||||
" VALUES (%u, 'Running',0,0,0) ON DUPLICATE KEY UPDATE Status='Running',CaptureFPS=0,AnalysisFPS=0,CaptureBandwidth=0",
|
||||
monitor->Id());
|
||||
zmDbDo(sql);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user