1
0
mirror of https://github.com/emersion/kanshi synced 2024-09-18 09:51:36 +02:00

convert refresh rate from Hz to mHz after parsing

This commit is contained in:
danieljampen 2019-08-13 00:55:13 +02:00 committed by Simon Ser
parent 33e39a444e
commit d4a3c5ba15

View File

@ -192,7 +192,7 @@ static bool parse_mode(struct kanshi_profile_output *output, char *str) {
fprintf(stderr, "invalid output mode: invalid refresh rate\n");
return false;
}
output->mode.refresh = v;
output->mode.refresh = v * 1000;
}
return true;