Skip to content

Commit

Permalink
Fix broken decimal display for FPS and BPM
Browse files Browse the repository at this point in the history
  • Loading branch information
EmK530 committed Jul 17, 2023
1 parent 6214ac3 commit eff055f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Playback/MainPlayer.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void StartPlayback(){
long long tempT = timeInMilliseconds();
if((long)(tempT-startTime)>=16){
if((long)(tempT-startTime2)>=1000){
printf("\nFPS: %f",(float)1/((float)(tempT-startTime2)/(float)1000/(float)totalFrames));
printf("\nFPS: %.10g",(float)1/((float)(tempT-startTime2)/(float)1000/(float)totalFrames));
totalFrames = 0;
startTime2 = tempT;
}
Expand All @@ -55,7 +55,7 @@ void StartPlayback(){
sprintf(num, "%llu", events);
strcat(temp,num);
strcat(temp," | BPM: ");
sprintf(fpstemp, "%lf", bpm);
sprintf(fpstemp, "%.5g", bpm);
strcat(temp,fpstemp);
SetConsoleTitle(temp);
}
Expand Down

0 comments on commit eff055f

Please sign in to comment.