Skip to content

Commit

Permalink
Merge pull request #18 from metrico/statistics_out
Browse files Browse the repository at this point in the history
Statistics out
  • Loading branch information
RFbkak37y3kIY authored Jul 8, 2022
2 parents 28b00ea + 2a6c422 commit a767fcb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 10 deletions.
32 changes: 22 additions & 10 deletions src/app/pages/home.page/home.page.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,22 +150,21 @@ <h1>No Data</h1>
<ng-template #hasData>
<div class="short-stat">
<div>
<strong>Elapsed: </strong>
<span>{{
timeShorter(
dataForFile?.statistics?.elapsed ||
dataForFile?.rows ||
0
)
}}</span>
</div>
<div>
<strong>Rows: </strong>
}} rows in set. Elapsed </span>
<span>{{
timeShorter(
dataForFile?.statistics?.elapsed ||
0
)
}}. </span>
<span>Processed {{
dataForFile?.statistics?.rows_read
}}</span>
</div>
<div>
<strong>Size: </strong>
}} rows, </span>
<span>
{{
bytesToSize(
Expand All @@ -174,6 +173,19 @@ <h1>No Data</h1>
)
}}
</span>

<span>
({{
timeShorter(
(dataForFile?.statistics?.elapsed || 0) / ( parseFloat(dataForFile?.statistics?.elapsed || 0) || 0.001 )
)
}} rows/s. {{
bytesToSize(
(dataForFile?.statistics?.bytes_read || 0) / ( parseFloat(dataForFile?.statistics?.elapsed || 0) || 0.001 )
)
}}/s.)
</span>

</div>
</div>
<custom-ag-grid
Expand Down
1 change: 1 addition & 0 deletions src/app/pages/home.page/home.page.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export class HomePageComponent implements OnInit {
pageSize: number = 50;
isPaginator: boolean = true;
currentRow: Row = new Map();
parseFloat = parseFloat;
constructor(
private apiService: ApiService,
private docsService: DocsService,
Expand Down

0 comments on commit a767fcb

Please sign in to comment.