summaryrefslogtreecommitdiff
path: root/timers.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2021-04-10 11:32:50 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2021-04-10 11:32:50 +0200
commitebd92dcd310e8fa1381e8e6488657aca7d92f547 (patch)
tree1b1d44b7cd4df14e747f3733a66d82313d6a7c58 /timers.c
parent0003d6391cbf3c16daca4cd6a45632bb619342d6 (diff)
downloadvdr-ebd92dcd310e8fa1381e8e6488657aca7d92f547.tar.gz
vdr-ebd92dcd310e8fa1381e8e6488657aca7d92f547.tar.bz2
Fixed logging the old timer data in cTimer::AdjustSpawnedTimer()
Diffstat (limited to 'timers.c')
-rw-r--r--timers.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/timers.c b/timers.c
index bfa1f700..ab4938a8 100644
--- a/timers.c
+++ b/timers.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: timers.c 5.10 2021/04/10 10:09:50 kls Exp $
+ * $Id: timers.c 5.11 2021/04/10 11:32:50 kls Exp $
*/
#include "timers.h"
@@ -776,7 +776,7 @@ bool cTimer::AdjustSpawnedTimer(void)
// use times given in full minutes, truncating any seconds. Thus we only react if the start/stop
// times of the timer are off by at least one minute:
if (abs(StartTime() - tstart) >= 60 || abs(StopTime() - tstop) >= 60) {
- cTimer OldTimer = *this;
+ cString OldDescr = ToDescr();
struct tm tm_r;
struct tm *time = localtime_r(&tstart, &tm_r);
SetDay(cTimer::SetTime(tstart, 0));
@@ -784,7 +784,7 @@ bool cTimer::AdjustSpawnedTimer(void)
time = localtime_r(&tstop, &tm_r);
SetStop(time->tm_hour * 100 + time->tm_min);
Matches();
- isyslog("timer %s times changed to %s-%s", *ToDescr(), *TimeString(tstart), *TimeString(tstop));
+ isyslog("timer %s times changed to %s-%s", *OldDescr, *TimeString(tstart), *TimeString(tstop));
return true;
}
}