summaryrefslogtreecommitdiff
path: root/clients
diff options
context:
space:
mode:
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>2016-04-12 11:05:23 +0300
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2016-04-12 11:50:50 +0300
commit48fbb5495931eff6e27531159a3fb1df630cfd63 (patch)
tree5d032bb0063defb87f0cb8bd9a5529e57bbbc27d /clients
parent265aeb316bce85a9c1941fb6e51b2b7b90760255 (diff)
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: Michel Dänzer <michel@daenzer.net> Cc: John Galt <johngaltfirstrun@gmail.com> Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Michel Dänzer <michel@daenzer.net> Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Diffstat (limited to 'clients')
-rw-r--r--clients/weston-info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/weston-info.c b/clients/weston-info.c
index 8ba80c0e..aa818167 100644
--- a/clients/weston-info.c
+++ b/clients/weston-info.c
@@ -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);