Skip to content

Commit

Permalink
Monitor: improve refreshRate formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
CarterLi committed Aug 5, 2024
1 parent b24877a commit 312d4cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/monitor/monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ void ffPrintMonitor(FFMonitorOptions* options)

printf("%ux%u px", display->width, display->height);
if (display->refreshRate > 0)
printf(" @ %.3f Hz", display->refreshRate);
printf(" @ %g Hz", ((int) (display->refreshRate * 1000 + 0.5)) / 1000.0);
if (inch > 0)
printf(" - %ux%u mm (%.2f inches, %.2f ppi)\n", display->physicalWidth, display->physicalHeight, inch, ppi);
else
Expand Down

0 comments on commit 312d4cc

Please sign in to comment.