Skip to content

Commit

Permalink
Set fallback first_weekday_to 0 (fix oetiker#1012)
Browse files Browse the repository at this point in the history
- Set first_weekday_to 0 (Sunday), when HAVE__NL_TIME_WEEK_1STDAY
  is not defined
- Fixes: oetiker#1012
  • Loading branch information
nirgal authored and c72578 committed Jun 16, 2019
1 parent 2eba02d commit 765490c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rrd_graph.c
Original file line number Diff line number Diff line change
Expand Up @@ -1568,7 +1568,7 @@ static int find_first_weekday(
}
first_weekday = (week_1stday + first_weekday - 1) % 7;
#else
first_weekday = 1;
first_weekday = 0;
#endif
}
return first_weekday;
Expand Down
2 changes: 1 addition & 1 deletion src/rrd_rpncalc.c
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ static int find_first_weekday(void){
}
first_weekday=(week_1stday + first_weekday - 1) % 7;
#else
first_weekday = 1;
first_weekday = 0;
#endif
}
return first_weekday;
Expand Down

0 comments on commit 765490c

Please sign in to comment.