Add server transfer speed too footer
This commit is contained in:
@@ -61,6 +61,7 @@ function resetMenu() {
|
||||
<div style="display: inline-block; margin: 0 8px;">
|
||||
Pixeldrain is a product by <a href="//fornaxian.tech" target="_blank">Fornaxian Technologies</a>
|
||||
</div>
|
||||
<br/>
|
||||
<div style="display: inline-block; margin: 0 8px;">
|
||||
<a href="https://www.patreon.com/pixeldrain" target="_blank">{{template `patreon.svg` .}} Patreon</a> |
|
||||
<a href="https://twitter.com/Fornax96" target="_blank">{{template `twitter.svg` .}} Twitter</a> |
|
||||
@@ -69,6 +70,13 @@ function resetMenu() {
|
||||
<a href="https://mastodon.social/web/@fornax" target="_blank">{{template `mastodon.svg` .}} Mastodon</a>
|
||||
</div>
|
||||
<br/>
|
||||
<div style="display: inline-block; margin: 0 8px;">
|
||||
{{$speed := .PixelAPI.GetMiscClusterSpeed}}
|
||||
Server speed: {{ formatDataBits $speed.ServerTX }}ps |
|
||||
Cache cluster: {{ formatDataBits $speed.CacheTX }}ps |
|
||||
Storage cluster: {{ formatDataBits $speed.StorageTX }}ps
|
||||
</div>
|
||||
<br/>
|
||||
<span class="small_footer_text" style="font-size: .75em; line-height: .75em;">
|
||||
page rendered by {{.Hostname}}
|
||||
</span>
|
||||
|
Reference in New Issue
Block a user