Commit 30b65565 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

taxis.c: cleanup

parent f5170dfd
......@@ -24,7 +24,7 @@ char *Timeunits[] = {
"days",
"months",
"years",
"quarter",
"quarters",
"3hours",
"6hours",
"12hours",
......@@ -52,9 +52,9 @@ void taxis_defaults(void)
timeunit = getenv("TIMEUNIT");
if ( timeunit )
{
if ( strcmp(timeunit, "minute") == 0 )
if ( strcmp(timeunit, "minutes") == 0 )
DefaultTimeUnit = TUNIT_MINUTE;
else if ( strcmp(timeunit, "hour") == 0 )
else if ( strcmp(timeunit, "hours") == 0 )
DefaultTimeUnit = TUNIT_HOUR;
else if ( strcmp(timeunit, "3hours") == 0 )
DefaultTimeUnit = TUNIT_3HOURS;
......@@ -62,11 +62,11 @@ void taxis_defaults(void)
DefaultTimeUnit = TUNIT_6HOURS;
else if ( strcmp(timeunit, "12hours") == 0 )
DefaultTimeUnit = TUNIT_12HOURS;
else if ( strcmp(timeunit, "day") == 0 )
else if ( strcmp(timeunit, "days") == 0 )
DefaultTimeUnit = TUNIT_DAY;
else if ( strcmp(timeunit, "month") == 0 )
else if ( strcmp(timeunit, "months") == 0 )
DefaultTimeUnit = TUNIT_MONTH;
else if ( strcmp(timeunit, "year") == 0 )
else if ( strcmp(timeunit, "years") == 0 )
DefaultTimeUnit = TUNIT_YEAR;
else
Warning("Unsupported TIMEUNIT %s!", timeunit);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment