From 694ef59532253727176ed0ce9077ae3ec41dd457 Mon Sep 17 00:00:00 2001 From: Marcin Koƛcielnicki Date: Sat, 27 Feb 2010 15:04:42 +0000 Subject: tests: vrefresh is actually not * 1000. --- tests/modeprint/modeprint.c | 4 ++-- tests/modetest/modetest.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/modeprint/modeprint.c b/tests/modeprint/modeprint.c index 89719147..4c612f41 100644 --- a/tests/modeprint/modeprint.c +++ b/tests/modeprint/modeprint.c @@ -81,8 +81,8 @@ int printMode(struct drm_mode_modeinfo *mode) printf("\tvrefresh : %i\n", mode->vrefresh); printf("\tflags : %i\n", mode->flags); } else { - printf("Mode: \"%s\" %ix%i %.0f\n", mode->name, - mode->hdisplay, mode->vdisplay, mode->vrefresh / 1000.0); + printf("Mode: \"%s\" %ix%i %i\n", mode->name, + mode->hdisplay, mode->vdisplay, mode->vrefresh); } return 0; } diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c index 124bf568..faad0b79 100644 --- a/tests/modetest/modetest.c +++ b/tests/modetest/modetest.c @@ -143,9 +143,9 @@ void dump_encoders(void) void dump_mode(drmModeModeInfo *mode) { - printf(" %s %.02f %d %d %d %d %d %d %d %d\n", + printf(" %s %d %d %d %d %d %d %d %d %d\n", mode->name, - (float)mode->vrefresh / 1000, + mode->vrefresh, mode->hdisplay, mode->hsync_start, mode->hsync_end, -- cgit v1.2.3