use lld instead of i in hyprctl getopt for accurate int reads

This commit is contained in:
vaxerski 2022-10-30 22:45:03 +00:00
parent 9f1d7f7fc7
commit 989deafd5e

View file

@ -728,13 +728,13 @@ std::string dispatchGetOption(std::string request, HyprCtl::eHyprCtlOutputFormat
return "no such option"; return "no such option";
if (format == HyprCtl::eHyprCtlOutputFormat::FORMAT_NORMAL) if (format == HyprCtl::eHyprCtlOutputFormat::FORMAT_NORMAL)
return getFormat("option %s\n\tint: %i\n\tfloat: %f\n\tstr: \"%s\"", curitem.c_str(), PCFGOPT->intValue, PCFGOPT->floatValue, PCFGOPT->strValue.c_str()); return getFormat("option %s\n\tint: %lld\n\tfloat: %f\n\tstr: \"%s\"", curitem.c_str(), PCFGOPT->intValue, PCFGOPT->floatValue, PCFGOPT->strValue.c_str());
else { else {
return getFormat( return getFormat(
R"#( R"#(
{ {
"option": "%s", "option": "%s",
"int": %i, "int": %lld,
"float": %f, "float": %f,
"str": "%s" "str": "%s"
} }