[Dashboard] Node resource display fix (#6521)

This commit is contained in:
Yunzhi Zhang
2019-12-18 12:07:37 -08:00
committed by Philipp Moritz
parent 26ec500ef9
commit c507859a83
2 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -246,7 +246,7 @@ const ResourceSet ResourceSet::GetNumCpus() const {
const std::string format_resource(std::string resource_name, double quantity) {
if (resource_name == "object_store_memory" || resource_name == "memory") {
// Convert to 100MiB chunks and then to GiB
// Convert to 50MiB chunks and then to GiB
return std::to_string(quantity * (50 * 1024 * 1024) / (1024 * 1024 * 1024)) + " GiB";
}
return std::to_string(quantity);