mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed using MIN_LOG_INTERVAL
This commit is contained in:
parent
dbb09c5ba1
commit
506b0de497
4
remux.c
4
remux.c
@ -11,7 +11,7 @@
|
|||||||
* The cRepacker family's code was originally written by Reinhard Nissl <rnissl@gmx.de>,
|
* The cRepacker family's code was originally written by Reinhard Nissl <rnissl@gmx.de>,
|
||||||
* and adapted to the VDR coding style by Klaus.Schmidinger@cadsoft.de.
|
* and adapted to the VDR coding style by Klaus.Schmidinger@cadsoft.de.
|
||||||
*
|
*
|
||||||
* $Id: remux.c 1.49 2005/12/03 14:33:10 kls Exp $
|
* $Id: remux.c 1.50 2005/12/04 13:56:50 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "remux.h"
|
#include "remux.h"
|
||||||
@ -123,7 +123,7 @@ cRepacker::cRepacker(void)
|
|||||||
|
|
||||||
bool cRepacker::LogAllowed(void)
|
bool cRepacker::LogAllowed(void)
|
||||||
{
|
{
|
||||||
bool Allowed = time(NULL) - lastLog > 10;
|
bool Allowed = time(NULL) - lastLog >= MIN_LOG_INTERVAL;
|
||||||
lastLog = time(NULL);
|
lastLog = time(NULL);
|
||||||
if (Allowed) {
|
if (Allowed) {
|
||||||
if (suppressedLogMessages) {
|
if (suppressedLogMessages) {
|
||||||
|
Loading…
Reference in New Issue
Block a user