mirror of
https://github.com/wassname/ray.git
synced 2026-08-13 12:30:18 +08:00
[Dashboard] Node resource display fix (#6521)
This commit is contained in:
committed by
Philipp Moritz
parent
26ec500ef9
commit
c507859a83
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user