Skip to content
This repository was archived by the owner on May 15, 2024. It is now read-only.

Commit 4b63748

Browse files
authored
Merge pull request #133 from NanoTools/develop
v1.5.4
2 parents 087c16c + 531f238 commit 4b63748

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

api.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
$data->version = $version->{'node_vendor'};
3838
$data->store_version = (int) $version->{'store_version'} ?: 0;
3939
$data->protocol_version = (int) $version->{'protocol_version'} ?: 0;
40+
$data->store_vendor = (string) $version->{'store_vendor'} ?: '';
4041

4142
// Cache the github query for latest node version
4243
global $nodeVersionCache;
@@ -113,8 +114,8 @@
113114
$percentile99 = getConfirmationsDurationPercentile(99, $confCompact);
114115

115116
// combine an array with all confirmation info
116-
$confSummary = ['count' => $confCount, 'timeSpan' => $timeSpan, 'average' => $confAverage, 'percentile50' => $percentile50,
117-
'percentile75' => $percentile75, 'percentile90' => $percentile90, 'percentile95' => $percentile95, 'percentile99' => $percentile99, ];
117+
$confSummary = ['count' => $confCount, 'timeSpan' => $timeSpan, 'average' => $confAverage, 'percentile50' => $percentile50,
118+
'percentile75' => $percentile75, 'percentile90' => $percentile90, 'percentile95' => $percentile95, 'percentile99' => $percentile99, ];
118119
$data->confirmationInfo = $confSummary;
119120
//$data->apiProcTimeConf = round((microtime(true) - $timeStampBefore) * 1000);
120121
}

index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
<p><?php echo $welcomeMsg; ?></p>
2121

2222
<div class="btn-group mb-3">
23-
<?php foreach ($socials as $socialkey => $socialvalue): ?>
23+
<?php foreach ($socials as $socialkey => $socialvalue) { ?>
2424
<a href="<?php echo $socialvalue; ?>" target="_blank" rel="noopener" class="btn btn-secondary" aria-label="Social Media">
2525
<i class="fab fa-<?php echo $socialkey; ?>"></i>
2626
</a>
27-
<?php endforeach; ?>
27+
<?php } ?>
2828
</div>
2929

3030
</div>

templates/index.hbs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@
3030
<li class="list-group-item">
3131
<span class="float-left-truncate">Version</span>
3232
<span class="float-right-truncate">{{version}}</span>
33+
{{#if store_vendor}} <!--Node V21-->
34+
<li class="list-group-item">
35+
<span class="float-left-truncate">Database</span>
36+
<span class="float-right-truncate">{{store_vendor}}</span>
37+
</li>
38+
{{/if}}
3339
</li>
3440
<li class="list-group-item">
3541
<span class="float-left-truncate">Current Block</span>

0 commit comments

Comments
 (0)