summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-wireguard/htdocs/luci-static/resources/view/wireguard/status.js
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-wireguard/htdocs/luci-static/resources/view/wireguard/status.js')
-rw-r--r--applications/luci-app-wireguard/htdocs/luci-static/resources/view/wireguard/status.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/applications/luci-app-wireguard/htdocs/luci-static/resources/view/wireguard/status.js b/applications/luci-app-wireguard/htdocs/luci-static/resources/view/wireguard/status.js
index 8614db018e..25d5df9ffb 100644
--- a/applications/luci-app-wireguard/htdocs/luci-static/resources/view/wireguard/status.js
+++ b/applications/luci-app-wireguard/htdocs/luci-static/resources/view/wireguard/status.js
@@ -18,11 +18,11 @@ function timestampToStr(timestamp) {
var seconds = (now.getTime() / 1000) - timestamp;
var ago = '';
if (seconds < 60) {
- ago = parseInt(seconds) + _('s ago');
+ ago = _('%ds ago').format(parseInt(seconds));
} else if (seconds < 3600) {
- ago = parseInt(seconds / 60) + _('m ago');
+ ago = _('%dm ago').format(parseInt(seconds / 60));
} else if (seconds < 86401) {
- ago = parseInt(seconds / 3600) + _('h ago');
+ ago = _('%dh ago').format(parseInt(seconds / 3600));
} else {
ago = _('over a day ago');
}