fix quota info failed
This commit is contained in:
parent
04e04c8a94
commit
898aad3229
|
@ -35,7 +35,7 @@
|
||||||
<th>CPU</th>
|
<th>CPU</th>
|
||||||
<th>Memory</th>
|
<th>Memory</th>
|
||||||
<th>Disk</th>
|
<th>Disk</th>
|
||||||
<th>Network</th>
|
<th>Vnode</th>
|
||||||
<th>Image</th>
|
<th>Image</th>
|
||||||
<th>Idletime</th>
|
<th>Idletime</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -49,7 +49,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<th>{{ quotainfo['memory'] }} MB</th>
|
<th>{{ quotainfo['memory'] }} MB</th>
|
||||||
<th>{{ quotainfo['disk'] }} MB</th>
|
<th>{{ quotainfo['disk'] }} MB</th>
|
||||||
<th>{{ quotainfo['network'] }} IP addresses</th>
|
<th>{{ quotainfo['vnode'] }}</th>
|
||||||
<th>{{ quotainfo['image'] }}</th>
|
<th>{{ quotainfo['image'] }}</th>
|
||||||
<th>{{ quotainfo['idletime'] }} hours</th>
|
<th>{{ quotainfo['idletime'] }} hours</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -15,7 +15,7 @@ class statusView(normalView):
|
||||||
clusters = result.get('clusters')
|
clusters = result.get('clusters')
|
||||||
result = dockletRequest.post('/monitor/user/quotainfo/', data)
|
result = dockletRequest.post('/monitor/user/quotainfo/', data)
|
||||||
quotainfo = result.get('quotainfo')
|
quotainfo = result.get('quotainfo')
|
||||||
quotainfo['cpu'] = int(int(quotainfo['cpu'])/100000)
|
quotainfo['cpu'] = int(int(quotainfo['cpu']))
|
||||||
print(quotainfo)
|
print(quotainfo)
|
||||||
if (result):
|
if (result):
|
||||||
containers = {}
|
containers = {}
|
||||||
|
|
Loading…
Reference in New Issue