From 64f55da3d4a4a01cfd40748e32b5168d29ffb2a1 Mon Sep 17 00:00:00 2001 From: Lorenzo Mangani Date: Thu, 7 Jul 2022 15:26:21 +0200 Subject: [PATCH 1/4] Mimick the standard driver format for statistics --- src/app/pages/home.page/home.page.component.html | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/app/pages/home.page/home.page.component.html b/src/app/pages/home.page/home.page.component.html index fe1a2ec..8b4bea0 100644 --- a/src/app/pages/home.page/home.page.component.html +++ b/src/app/pages/home.page/home.page.component.html @@ -159,13 +159,10 @@

No Data

}}
- Rows: + Processed: {{ dataForFile?.statistics?.rows_read - }} -
-
- Size: + }} rows, {{ bytesToSize( From 8cfbdb576c2b9da9cc6750da052723770d89acaf Mon Sep 17 00:00:00 2001 From: Lorenzo Mangani Date: Thu, 7 Jul 2022 18:35:44 +0200 Subject: [PATCH 2/4] Update home.page.component.html --- src/app/pages/home.page/home.page.component.html | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/app/pages/home.page/home.page.component.html b/src/app/pages/home.page/home.page.component.html index 8b4bea0..7f7d3d2 100644 --- a/src/app/pages/home.page/home.page.component.html +++ b/src/app/pages/home.page/home.page.component.html @@ -150,17 +150,19 @@

No Data

- Elapsed: {{ timeShorter( - dataForFile?.statistics?.elapsed || + dataForFile?.rows || 0 ) - }} -
-
- Processed: + }} rows in set. Elapsed {{ + timeShorter( + dataForFile?.statistics?.elapsed || + 0 + ) + }}. + Processed {{ dataForFile?.statistics?.rows_read }} rows, From 98fbd4cd73f981ae4da196b0fcf0bc40701cb052 Mon Sep 17 00:00:00 2001 From: Lorenzo Mangani Date: Thu, 7 Jul 2022 18:40:55 +0200 Subject: [PATCH 3/4] Update home.page.component.html --- src/app/pages/home.page/home.page.component.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/app/pages/home.page/home.page.component.html b/src/app/pages/home.page/home.page.component.html index 7f7d3d2..852687a 100644 --- a/src/app/pages/home.page/home.page.component.html +++ b/src/app/pages/home.page/home.page.component.html @@ -173,6 +173,19 @@

No Data

) }}
+ + + ({{ + timeShorter( + (dataForFile?.statistics?.elapsed || 0) / ( parseFloat(dataForFile?.statistics?.elapsed) || 0.001 ) + ) + }} rows/s. {{ + bytesToSize( + (dataForFile?.statistics?.bytes_read || 0) / ( parseFloat(dataForFile?.statistics?.elapsed) || 0.001 ) + ) + }}/s.) + +
Date: Fri, 8 Jul 2022 12:33:43 +0300 Subject: [PATCH 4/4] fix build bug --- src/app/pages/home.page/home.page.component.html | 8 ++++---- src/app/pages/home.page/home.page.component.ts | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/app/pages/home.page/home.page.component.html b/src/app/pages/home.page/home.page.component.html index 852687a..14c8bbd 100644 --- a/src/app/pages/home.page/home.page.component.html +++ b/src/app/pages/home.page/home.page.component.html @@ -173,19 +173,19 @@

No Data

) }}
- + ({{ timeShorter( - (dataForFile?.statistics?.elapsed || 0) / ( parseFloat(dataForFile?.statistics?.elapsed) || 0.001 ) + (dataForFile?.statistics?.elapsed || 0) / ( parseFloat(dataForFile?.statistics?.elapsed || 0) || 0.001 ) ) }} rows/s. {{ bytesToSize( - (dataForFile?.statistics?.bytes_read || 0) / ( parseFloat(dataForFile?.statistics?.elapsed) || 0.001 ) + (dataForFile?.statistics?.bytes_read || 0) / ( parseFloat(dataForFile?.statistics?.elapsed || 0) || 0.001 ) ) }}/s.) - +