Project

General

Profile

Actions

Feature #161

closed

show information on two lines

Added by Anonymous over 14 years ago. Updated about 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
09/28/2009
Due date:
09/29/2009
% Done:

100%

Estimated time:
3:00 h

Description

Hi

Currently this plugin can show information only on one single line. With following patch it is possible to have a second line.
The content of this additional line should be target of further enhancements.

greets
Sven


Files

imonlcd-0.0.2-twolinemode.patch (4.89 KB) imonlcd-0.0.2-twolinemode.patch patch Anonymous, 09/28/2009 05:51 PM
Actions #1

Updated by anbr over 14 years ago

  • Due date set to 09/29/2009
  • Status changed from New to Resolved
  • Assignee set to anbr
  • % Done changed from 0 to 100
  • Estimated time set to 3:00 h

Thanks, i apply your patch with 3c26d247.

FYI: i have two memory leaks removed. (buffer / firstline)

+    if (theSetup.m_bTwoLineMode && (m_eWatchMode >= eReplayNormal) ) {
+      time_t ts = time(NULL);
+      struct tm l;
+      localtime_r(&ts, &l);
+      
+      char* buffer = new char[20];
+      sprintf(buffer, "%d:%d", l.tm_hour, l.tm_min);
+      firstLine = new cString(buffer);;
+    }

Regards Andreas

Actions #2

Updated by anbr over 14 years ago

  • Status changed from Resolved to Closed
Actions #3

Updated by anbr about 14 years ago

  • Target version changed from 0.0.2 to 0.0.3
Actions

Also available in: Atom PDF