Skip to content

Commit

Permalink
[Load Average] Show load average for 1m / 5m / 15m (#3815)
Browse files Browse the repository at this point in the history
  • Loading branch information
hudokkow committed Jul 21, 2023
1 parent 5491757 commit 7199ed3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/v-list-sys-info
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ UPTIME=$(cat /proc/uptime | cut -f 1 -d ' ' | cut -f 1 -d .)
UPTIME="$(echo $UPTIME / 60 | bc)"

# Check LoadAverage
LOADAVERAGE=$(cat /proc/loadavg | cut -f 1 -d ' ')
LOADAVERAGE=$(cat /proc/loadavg | cut -f 1-3 -d ' ' | sed 's/ / \/ /g')

# Listing data
case $format in
Expand Down
2 changes: 1 addition & 1 deletion web/templates/pages/list_services.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class="button button-secondary button-danger data-controls js-confirm-action"
</span>
</li>
<li class="server-summary-item">
<span class="server-summary-list-label"><?= _("Load Average") ?></span>
<span class="server-summary-list-label"><?= _("Load Average") ?> (1m / 5m / 15m)</span>
<span class="server-summary-list-value">
<?= $sys["sysinfo"]["LOADAVERAGE"] ?>
</span>
Expand Down

0 comments on commit 7199ed3

Please sign in to comment.