Skip to content

Commit

Permalink
fix last played auto start datatype
Browse files Browse the repository at this point in the history
  • Loading branch information
KrahJohlito committed Jul 7, 2020
1 parent bd78578 commit 9f1ffc1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/opl.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ int gRememberLastPlayed;
int KeyPressedOnce;
int gAutoStartLastPlayed;
int RemainSecs, DisableCron;
double CronStart;
clock_t CronStart;

unsigned char gDefaultBgColor[3];
unsigned char gDefaultTextColor[3];
Expand Down
2 changes: 1 addition & 1 deletion src/gui.c
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,7 @@ static void guiDrawOverlays()
CronStart = clock() / CLOCKS_PER_SEC;
} else {
char strAutoStartInNSecs[21];
double CronCurrent;
clock_t CronCurrent;

CronCurrent = clock() / CLOCKS_PER_SEC;
RemainSecs = gAutoStartLastPlayed - (CronCurrent - CronStart);
Expand Down

0 comments on commit 9f1ffc1

Please sign in to comment.