diff options
author | deva <deva> | 2005-06-15 08:34:28 +0000 |
---|---|---|
committer | deva <deva> | 2005-06-15 08:34:28 +0000 |
commit | cc50a61331e0de5a0419bd52fb2edd628c479754 (patch) | |
tree | 5d9f9e2460002f62688a474541e5986dc18b51a4 /src | |
parent | 6856d545cbaba8ea8945f8ff880377bed4aa404c (diff) |
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r-- | src/mainwindow.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/mainwindow.cc b/src/mainwindow.cc index 0e84dbf..2845830 100644 --- a/src/mainwindow.cc +++ b/src/mainwindow.cc @@ -31,6 +31,9 @@ /* * $Log$ + * Revision 1.31 2005/06/15 08:34:28 deva + * *** empty log message *** + * * Revision 1.30 2005/06/15 08:28:58 deva * Added logging to mainwindow, removed newline in log entry from file * @@ -313,11 +316,11 @@ static int watchdog = 0; void MainWindow::taskbar_update() { struct timeval time; + watchdog++; if(recording) { - watchdog++; - if(watchdog % 300 || (camera->getQueueLength() > 1000 && watchdog % 10)) - info->log("Queue length: %d", camera->getQueueLength()); + if((watchdog % 300 == 0) || ((camera->getQueueLength() > 1000) && (watchdog % 10 == 0))) + info->log("Queue length: %d (active)", camera->getQueueLength()); gettimeofday(&time, NULL); @@ -328,6 +331,8 @@ void MainWindow::taskbar_update() m = s / 60; s -= m * 60; } else { + if(watchdog % 300 == 0) + info->log("Queue length: %d (passive)", camera->getQueueLength()); gettimeofday(&starttime, NULL); } |