time taken updated

This commit is contained in:
raja.blaze 2019-09-10 17:40:22 +05:30
parent aef03badda
commit 5bea13e1d5
4 changed files with 13 additions and 0 deletions

View File

@ -1053,6 +1053,7 @@ export class BlockchainBlockController {
'blockchain_block.TotalDifficultyProgpow',
'blockchain_block.TotalDifficultyRandomx',
'blockchain_block.previous_id',
'EXTRACT(EPOCH FROM (blockchain_block.timestamp - LAG(blockchain_block.timestamp) OVER (ORDER BY blockchain_block.timestamp))) as timetaken',
'blockchain_block.total_difficulty_cuckaroo - LAG(blockchain_block.total_difficulty_cuckaroo) OVER (ORDER BY blockchain_block.total_difficulty_cuckaroo) AS target_difficulty_cuckaroo',
'blockchain_block.total_difficulty_cuckatoo - LAG(blockchain_block.total_difficulty_cuckatoo) OVER (ORDER BY blockchain_block.total_difficulty_cuckatoo) AS target_difficulty_cuckatoo',
'blockchain_block.total_difficulty_progpow - LAG(blockchain_block.total_difficulty_progpow) OVER (ORDER BY blockchain_block.total_difficulty_progpow) AS target_difficulty_progpow',

View File

@ -14,6 +14,7 @@
"avg-block-interval" : "Durchschnittliches Sperrintervall",
"home": {
"HEADER_TEXT": "Sie befinden sich in Beta",
"TIMETAKEN": "Genomen tijd (sec)",
"COUNTDOWN": "Mainnet-Countdown",
"EXPLORE_IT": "Entdecke",
"VIEWALL": "Alle Diagramme anzeigen",

View File

@ -15,6 +15,7 @@
"home": {
"HEADER_TEXT": "You are on Beta",
"COUNTDOWN": "Mainnet Countdown",
"TIMETAKEN": "Time Taken(sec)",
"EXPLORE_IT": "Explore",
"VIEWALL": "View All Charts",
"BLOCKCHAIN_HEIGHT": "Blockchain Height",

View File

@ -18,6 +18,11 @@
<h5 class="mb-0">{{'home.AGE' | translate}}</h5>
</div>
</div>
<div class="col-6 col-md-1 tble_col">
<div class="block_div">
<h5 class="mb-0">{{'home.TIMETAKEN' | translate}}</h5>
</div>
</div>
<div class="col-6 col-md-4 tble_col">
<div class="block_div">
<h5 class="mb-0">{{'home.TARGET_DIFFICULTY' | translate}}</h5>
@ -74,6 +79,11 @@
<h6>Age</h6><span class="blck_value">{{ hashvalue.age }}</span>
</div>
</div>
<div class="col-6 col-md-2 tble_col">
<div class="block_div">
<h6>Time Taken</h6><span class="blck_value">{{ hashvalue.timetaken }}</span>
</div>
</div>
<div class="col-6 col-md-3 tble_col">
<!-- title="Cuckaroo : {{ hashvalue.target_difficulty_cuckaroo | number }}, Cuckatoo : {{ hashvalue.target_difficulty_cuckatoo | number }}, Progpow : {{ hashvalue.target_difficulty_progpow | number }}, Randomx : {{ hashvalue.target_difficulty_randomx | number }}" -->
<div class="block_div">