CLOUDSTACK-2765

Dashboard is showing invalid value for storage
Fixed it by using the right storage method for sending the stats command
This commit is contained in:
Nitin Mehta 2013-06-03 15:35:12 +05:30
parent 7b0da06238
commit 68b8da0df7
1 changed files with 1 additions and 1 deletions

View File

@ -567,7 +567,7 @@ public class StatsCollector extends ManagerBase implements ComponentMethodInterc
GetStorageStatsCommand command = new GetStorageStatsCommand(pool.getUuid(), pool.getPoolType(), pool.getPath());
long poolId = pool.getId();
try {
Answer answer = _storageManager.sendToPool(pool.getId(), command);
Answer answer = _storageManager.sendToPool(pool, command);
if (answer != null && answer.getResult()) {
storagePoolStats.put(pool.getId(), (StorageStats)answer);