File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 200200 </template >
201201 <template #physicalsize =" { text } " >
202202 <span v-if =" text" >
203- {{ parseFloat(parseFloat(text) / 1024.0 / 1024.0 / 1024.0).toFixed(2) }} GiB
203+ {{ isNaN(text) ? text : ( parseFloat(parseFloat(text) / 1024.0 / 1024.0 / 1024.0).toFixed(2) + ' GiB') }}
204204 </span >
205205 </template >
206206 <template #physicalnetworkname =" { text , record } " >
Original file line number Diff line number Diff line change @@ -42,11 +42,7 @@ export default {
4242 const metricsFields = [ 'diskkbsread' , 'diskkbswrite' , 'diskiopstotal' ]
4343
4444 if ( store . getters . userInfo . roletype === 'Admin' ) {
45- metricsFields . push ( {
46- physicalsize : ( record ) => {
47- return record . physicalsize ? parseFloat ( record . physicalsize / ( 1024.0 * 1024.0 * 1024.0 ) ) . toFixed ( 2 ) + 'GB' : ''
48- }
49- } )
45+ metricsFields . push ( 'physicalsize' )
5046 }
5147 metricsFields . push ( 'utilization' )
5248
You can’t perform that action at this time.
0 commit comments