ui: datastore summary: indentation/whitespace error fix
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
		@ -1,27 +1,27 @@
 | 
				
			|||||||
Ext.define('pve-rrd-datastore', {
 | 
					Ext.define('pve-rrd-datastore', {
 | 
				
			||||||
    extend: 'Ext.data.Model',
 | 
					    extend: 'Ext.data.Model',
 | 
				
			||||||
    fields: [
 | 
					    fields: [
 | 
				
			||||||
        'used',
 | 
						'used',
 | 
				
			||||||
        'total',
 | 
						'total',
 | 
				
			||||||
        'read_ios',
 | 
						'read_ios',
 | 
				
			||||||
        'read_bytes',
 | 
						'read_bytes',
 | 
				
			||||||
        'write_ios',
 | 
						'write_ios',
 | 
				
			||||||
        'write_bytes',
 | 
						'write_bytes',
 | 
				
			||||||
        'io_ticks',
 | 
						'io_ticks',
 | 
				
			||||||
        {
 | 
						{
 | 
				
			||||||
            name: 'io_delay', calculate: function(data) {
 | 
						    name: 'io_delay', calculate: function(data) {
 | 
				
			||||||
                let ios = 0;
 | 
							let ios = 0;
 | 
				
			||||||
                if (data.read_ios !== undefined) { ios += data.read_ios; }
 | 
							if (data.read_ios !== undefined) { ios += data.read_ios; }
 | 
				
			||||||
                if (data.write_ios !== undefined) { ios += data.write_ios; }
 | 
							if (data.write_ios !== undefined) { ios += data.write_ios; }
 | 
				
			||||||
                if (data.io_ticks === undefined) {
 | 
							if (data.io_ticks === undefined) {
 | 
				
			||||||
                    return undefined;
 | 
							    return undefined;
 | 
				
			||||||
                } else if (ios === 0) {
 | 
							} else if (ios === 0) {
 | 
				
			||||||
                    return 0;
 | 
							    return 0;
 | 
				
			||||||
                }
 | 
							}
 | 
				
			||||||
                return (data.io_ticks*1000.0)/ios;
 | 
							return (data.io_ticks*1000.0)/ios;
 | 
				
			||||||
            },
 | 
						    },
 | 
				
			||||||
        },
 | 
						},
 | 
				
			||||||
        { type: 'date', dateFormat: 'timestamp', name: 'time' },
 | 
						{ type: 'date', dateFormat: 'timestamp', name: 'time' },
 | 
				
			||||||
    ],
 | 
					    ],
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user