StorageService: getLoadString should return units

This address issue #512

Signed-off-by: Amnon Heiman <amnon@scylladb.com>
This commit is contained in:
Amnon Heiman 2015-10-29 11:46:07 +02:00 committed by Pekka Enberg
parent b5d29a0796
commit 00694ce40a
1 changed files with 2 additions and 1 deletions

View File

@ -39,6 +39,7 @@ import javax.ws.rs.core.MultivaluedMap;
import org.apache.cassandra.metrics.StorageMetrics;
import org.apache.cassandra.repair.RepairParallelism;
import com.cloudius.urchin.api.APIClient;
import com.cloudius.urchin.utils.FileUtils;
/**
* This abstraction contains the token/identifier of this node on the identifier
@ -306,7 +307,7 @@ public class StorageService extends NotificationBroadcasterSupport
/** Human-readable load value */
public String getLoadString() {
log(" getLoadString()");
return String.valueOf(getLoad());
return FileUtils.stringifyFileSize(getLoad());
}
/** Human-readable load value. Keys are IP addresses. */