monitor-config-manager: Only report Hz to 3 decimal places

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2465>
This commit is contained in:
Daniel van Vugt 2022-06-15 18:13:50 +08:00 committed by Marge Bot
parent b5169f2567
commit 8e5f5fbe54

View File

@ -324,7 +324,7 @@ assign_monitor_crtcs (MetaMonitorManager *manager,
if (!monitor_mode)
{
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
"Invalid mode %dx%d (%f) for monitor '%s %s'",
"Invalid mode %dx%d (%.3f) for monitor '%s %s'",
monitor_mode_spec->width, monitor_mode_spec->height,
monitor_mode_spec->refresh_rate,
monitor_spec->vendor, monitor_spec->product);