Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
RFbkak37y3kIY committed Jul 8, 2022
2 parents 7c37d05 + 30f0669 commit 65a0c30
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "click-house-play",
"version": "1.0.3",
"version": "1.0.5",
"scripts": {
"ng": "ng",
"start": "ng serve --open",
Expand Down
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 65a0c30

Please sign in to comment.