Ignore:
Timestamp:
01/12/11 22:52:14 (10 years ago)
Author:
alno
Message:

WebIf: fix format issue 00: in times

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/oscam-http-helpers.c

    r4435 r4437  
    636636            }
    637637        }
    638     }
    639     if(!days)   snprintf(value, sizeof(value), "%02d:%02d:%02d", hours, mins, secs);
    640     else        snprintf(value, sizeof(value), "%02dd %02d:%02d:%02d", days, hours, mins, secs);
     638    } else {
     639        return "00:00:00";
     640    }
     641
     642    if(days == 0)
     643        snprintf(value, 16, "%02d:%02d:%02d", hours, mins, secs);
     644    else
     645        snprintf(value, 16, "%02dd %02d:%02d:%02d", days, hours, mins, secs);
    641646
    642647    return tpl_addTmp(vars, value);
Note: See TracChangeset for help on using the changeset viewer.