From 0cbdeed96b982bc2587a0a0a316366927fa0d90d Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 28 Oct 2020 21:24:25 +0100 Subject: [PATCH] ui: datastore summary: indentation/whitespace error fix Signed-off-by: Thomas Lamprecht --- www/DataStoreSummary.js | 42 ++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/www/DataStoreSummary.js b/www/DataStoreSummary.js index 487f30f0..525486a5 100644 --- a/www/DataStoreSummary.js +++ b/www/DataStoreSummary.js @@ -1,27 +1,27 @@ Ext.define('pve-rrd-datastore', { extend: 'Ext.data.Model', fields: [ - 'used', - 'total', - 'read_ios', - 'read_bytes', - 'write_ios', - 'write_bytes', - 'io_ticks', - { - name: 'io_delay', calculate: function(data) { - let ios = 0; - if (data.read_ios !== undefined) { ios += data.read_ios; } - if (data.write_ios !== undefined) { ios += data.write_ios; } - if (data.io_ticks === undefined) { - return undefined; - } else if (ios === 0) { - return 0; - } - return (data.io_ticks*1000.0)/ios; - }, - }, - { type: 'date', dateFormat: 'timestamp', name: 'time' }, + 'used', + 'total', + 'read_ios', + 'read_bytes', + 'write_ios', + 'write_bytes', + 'io_ticks', + { + name: 'io_delay', calculate: function(data) { + let ios = 0; + if (data.read_ios !== undefined) { ios += data.read_ios; } + if (data.write_ios !== undefined) { ios += data.write_ios; } + if (data.io_ticks === undefined) { + return undefined; + } else if (ios === 0) { + return 0; + } + return (data.io_ticks*1000.0)/ios; + }, + }, + { type: 'date', dateFormat: 'timestamp', name: 'time' }, ], });