diff options
author | Lars Hanisch <dvb@flensrocker.de> | 2011-09-21 23:44:03 +0200 |
---|---|---|
committer | Lars Hanisch <dvb@flensrocker.de> | 2011-09-22 00:11:28 +0200 |
commit | d0b79e0e3c84d0e3d259b0f90a94e6857ebf9d40 (patch) | |
tree | fa627daa628685965f7adabdbcfcd5badc2691ae | |
parent | 835f90524b4d86e1e572cda3ca751509457ba285 (diff) | |
download | vdr-plugin-dynamite-d0b79e0e3c84d0e3d259b0f90a94e6857ebf9d40.tar.gz vdr-plugin-dynamite-d0b79e0e3c84d0e3d259b0f90a94e6857ebf9d40.tar.bz2 |
skip the first housekeepingv0.0.8a
-rw-r--r-- | dynamite.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -291,7 +291,9 @@ void cPluginDynamite::Stop(void) void cPluginDynamite::Housekeeping(void) { int now = time(NULL); - if ((lastHousekeeping == 0) || ((now - lastHousekeeping) > 60)) { + if (lastHousekeeping == 0) + lastHousekeeping = now; + else if ((now - lastHousekeeping) > 60) { cDynamicDevice::AutoIdle(); lastHousekeeping = now; } |