mirror of
https://github.com/swaywm/sway.git
synced 2026-04-22 06:46:27 -04:00
Merge ff14df6db3 into a7b9f6fedc
This commit is contained in:
commit
789c570f7c
8 changed files with 107 additions and 6 deletions
|
|
@ -249,8 +249,15 @@ static void pretty_print_output(json_object *o) {
|
|||
);
|
||||
|
||||
int max_render_time_int = json_object_get_int(max_render_time);
|
||||
|
||||
printf(" Max render time: ");
|
||||
printf(max_render_time_int == 0 ? "off\n" : "%d ms\n", max_render_time_int);
|
||||
if (max_render_time_int == 0) {
|
||||
printf("off\n");
|
||||
} else if (max_render_time_int > 0) {
|
||||
printf("%d ms\n", max_render_time_int);
|
||||
} else {
|
||||
printf("%d ms (auto)\n", -max_render_time_int);
|
||||
}
|
||||
|
||||
printf(" Adaptive sync: %s\n",
|
||||
json_object_get_string(adaptive_sync_status));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue