Fix /proc/memory to return floats

This commit is contained in:
Tyler Perkins 2022-04-29 12:04:43 -04:00
parent 0d6674b9b9
commit b8df32111d
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ bool memory::getProcMem(crow::json::wvalue& ret){
final_space = i;
}
ret[line.substr(0,colon)] = line.substr(last_space, final_space - last_space);
ret[line.substr(0,colon)] = std::stof(line.substr(last_space, final_space - last_space));
}
} else {
ret["message"] = "Failed to open proc filesystem";