diff options
Diffstat (limited to 'views/viewhelpers.c')
| -rw-r--r-- | views/viewhelpers.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/views/viewhelpers.c b/views/viewhelpers.c index 47aa83b..8598e7c 100644 --- a/views/viewhelpers.c +++ b/views/viewhelpers.c @@ -760,6 +760,11 @@ void cViewHelpers::SetTimers(map<string,int> *intTokens, map<string,string> *str void cViewHelpers::SetLastRecordings(map<string,int> *intTokens, map<string,string> *stringTokens, vector<stringmap> *lastRecordings) { + cGlobalSortedTimers SortedTimers;// local and remote timers + int numTimers = SortedTimers.Size(); + //set number of timers so that it is possible to adapt this viewelement accordingly + intTokens->insert(pair<string, int>("numtimers", numTimers)); + list<cRecording*> orderedRecs; for (cRecording *recording = Recordings.First(); recording; recording = Recordings.Next(recording)) { |
