diff options
Diffstat (limited to 'swaymsg')
-rw-r--r-- | swaymsg/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/swaymsg/main.c b/swaymsg/main.c index 38976f9c..eb13f0d8 100644 --- a/swaymsg/main.c +++ b/swaymsg/main.c | |||
@@ -214,7 +214,7 @@ static void pretty_print_output(json_object *o) { | |||
214 | if (json_object_get_boolean(active)) { | 214 | if (json_object_get_boolean(active)) { |
215 | printf( | 215 | printf( |
216 | "Output %s '%s %s %s'%s\n" | 216 | "Output %s '%s %s %s'%s\n" |
217 | " Current mode: %dx%d @ %f Hz\n" | 217 | " Current mode: %dx%d @ %.3f Hz\n" |
218 | " Position: %d,%d\n" | 218 | " Position: %d,%d\n" |
219 | " Scale factor: %f\n" | 219 | " Scale factor: %f\n" |
220 | " Scale filter: %s\n" | 220 | " Scale filter: %s\n" |
@@ -228,7 +228,7 @@ static void pretty_print_output(json_object *o) { | |||
228 | json_object_get_boolean(focused) ? " (focused)" : "", | 228 | json_object_get_boolean(focused) ? " (focused)" : "", |
229 | json_object_get_int(width), | 229 | json_object_get_int(width), |
230 | json_object_get_int(height), | 230 | json_object_get_int(height), |
231 | (float)json_object_get_int(refresh) / 1000, | 231 | (double)json_object_get_int(refresh) / 1000, |
232 | json_object_get_int(x), json_object_get_int(y), | 232 | json_object_get_int(x), json_object_get_int(y), |
233 | json_object_get_double(scale), | 233 | json_object_get_double(scale), |
234 | json_object_get_string(scale_filter), | 234 | json_object_get_string(scale_filter), |
@@ -265,9 +265,9 @@ static void pretty_print_output(json_object *o) { | |||
265 | json_object_object_get_ex(mode, "height", &mode_height); | 265 | json_object_object_get_ex(mode, "height", &mode_height); |
266 | json_object_object_get_ex(mode, "refresh", &mode_refresh); | 266 | json_object_object_get_ex(mode, "refresh", &mode_refresh); |
267 | 267 | ||
268 | printf(" %dx%d @ %f Hz\n", json_object_get_int(mode_width), | 268 | printf(" %dx%d @ %.3f Hz\n", json_object_get_int(mode_width), |
269 | json_object_get_int(mode_height), | 269 | json_object_get_int(mode_height), |
270 | (float)json_object_get_int(mode_refresh) / 1000); | 270 | (double)json_object_get_int(mode_refresh) / 1000); |
271 | } | 271 | } |
272 | } | 272 | } |
273 | 273 | ||