Skip to content
Snippets Groups Projects
Commit 48fbb549 authored by Pekka Paalanen's avatar Pekka Paalanen
Browse files

weston-info: do not round refresh rates


Weston-info was accidentally rounding refresh rates to integer Hz.

Fix it to print 3 decimals, as the protocol carries exactly that.

Reported-by: default avatarMichel Dänzer <michel@daenzer.net>
Cc: John Galt <johngaltfirstrun@gmail.com>
Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: default avatarMichel Dänzer <michel@daenzer.net>
Reviewed-by: default avatarQuentin Glidic <sardemff7+git@sardemff7.net>
parent 265aeb31
No related branches found
No related tags found
No related merge requests found
......@@ -226,7 +226,7 @@ print_output_info(void *data)
wl_list_for_each(mode, &output->modes, link) {
printf("\tmode:\n");
printf("\t\twidth: %d px, height: %d px, refresh: %.f Hz,\n",
printf("\t\twidth: %d px, height: %d px, refresh: %.3f Hz,\n",
mode->width, mode->height,
(float) mode->refresh / 1000);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment