mirror of https://github.com/apache/cloudstack.git
commit
8f7428837e
|
|
@ -290,7 +290,7 @@ public class ViewResponseHelper {
|
|||
if (vs != null){
|
||||
long vsz = vs.getVirtualSize();
|
||||
long psz = vs.getPhysicalSize() ;
|
||||
double util = (int)(psz/vsz);
|
||||
double util = (double)psz/vsz;
|
||||
vrData.setVirtualsize(vsz);
|
||||
vrData.setPhysicalsize(psz);
|
||||
vrData.setUtilization(df.format(util));
|
||||
|
|
|
|||
|
|
@ -319,7 +319,7 @@ public class DatabaseConfig {
|
|||
|
||||
s_defaultConfigurationValues.put("host.stats.interval", "60000");
|
||||
s_defaultConfigurationValues.put("storage.stats.interval", "60000");
|
||||
//s_defaultConfigurationValues.put("volume.stats.interval", "-1");
|
||||
s_defaultConfigurationValues.put("volume.stats.interval", "60000");
|
||||
s_defaultConfigurationValues.put("port", "8250");
|
||||
s_defaultConfigurationValues.put("integration.api.port", "8096");
|
||||
s_defaultConfigurationValues.put("usage.stats.job.exec.time", "00:15"); // run at 12:15am
|
||||
|
|
|
|||
|
|
@ -577,6 +577,18 @@
|
|||
sizegb: {
|
||||
label: 'label.metrics.disk.size'
|
||||
},
|
||||
physicalsize: {
|
||||
label: 'label.disk.physicalsize',
|
||||
converter: function(args) {
|
||||
if (args == null || args == 0)
|
||||
return "";
|
||||
else
|
||||
return cloudStack.converters.convertBytes(args);
|
||||
}
|
||||
},
|
||||
utilization: {
|
||||
label: 'label.disk.utilisation'
|
||||
},
|
||||
storagetype: {
|
||||
label: 'label.metrics.disk.storagetype'
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue