Skip to content

Commit 312d4cc

Browse files
committed
Monitor: improve refreshRate formatting
1 parent b24877a commit 312d4cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/monitor/monitor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void ffPrintMonitor(FFMonitorOptions* options)
5454

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

0 commit comments

Comments
 (0)