mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
infoviewer: fix commit 054338b
Origin commit data ------------------ Branch: ni/coolstream Commit:54c25c0e4c
Author: vanhofen <vanhofen@gmx.de> Date: 2020-01-25 (Sat, 25 Jan 2020) Origin message was: ------------------ - infoviewer: fix commit054338b
------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit
This commit is contained in:
@@ -1932,7 +1932,8 @@ void CInfoViewer::show_Data (bool calledFromEvent)
|
||||
}
|
||||
|
||||
time_t jetzt = time (NULL);
|
||||
time_t cur_start_time = info_CurrentNext.current_zeit.startzeit;
|
||||
time_t curr_start_time = info_CurrentNext.current_zeit.startzeit;
|
||||
time_t next_start_time = info_CurrentNext.next_zeit.startzeit;
|
||||
|
||||
const char *unit_short_minute = g_Locale->getText(LOCALE_UNIT_SHORT_MINUTE);
|
||||
|
||||
@@ -1954,7 +1955,7 @@ void CInfoViewer::show_Data (bool calledFromEvent)
|
||||
snprintf(runningRest, sizeof(runningRest), "%d +%d %s", info_CurrentNext.current_zeit.dauer / 60, -rest, unit_short_minute);
|
||||
}
|
||||
|
||||
struct tm *pStartZeit = localtime (&cur_start_time);
|
||||
struct tm *pStartZeit = localtime (&curr_start_time);
|
||||
snprintf (runningStart, sizeof(runningStart), "%02d:%02d", pStartZeit->tm_hour, pStartZeit->tm_min);
|
||||
} else
|
||||
last_curr_id = 0;
|
||||
@@ -1962,7 +1963,7 @@ void CInfoViewer::show_Data (bool calledFromEvent)
|
||||
if (info_CurrentNext.flags & CSectionsdClient::epgflags::has_next) {
|
||||
unsigned dauer = info_CurrentNext.next_zeit.dauer / 60;
|
||||
snprintf (nextDuration, sizeof(nextDuration), "%d %s", dauer, unit_short_minute);
|
||||
struct tm *pStartZeit = localtime (&cur_start_time);
|
||||
struct tm *pStartZeit = localtime (&next_start_time);
|
||||
snprintf (nextStart, sizeof(nextStart), "%02d:%02d", pStartZeit->tm_hour, pStartZeit->tm_min);
|
||||
} else
|
||||
last_next_id = 0;
|
||||
|
Reference in New Issue
Block a user