From f1a3f9bfa8b2604276708131d42f14c79e5e2b62 Mon Sep 17 00:00:00 2001 From: Valentin Kaelin Date: Tue, 31 Mar 2020 14:12:47 +0200 Subject: [PATCH] feat: add hours played in global stats --- .../src/components/Summoner/Overview/SummonerStats.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/client/src/components/Summoner/Overview/SummonerStats.vue b/client/src/components/Summoner/Overview/SummonerStats.vue index d4d5196..6fa5980 100644 --- a/client/src/components/Summoner/Overview/SummonerStats.vue +++ b/client/src/components/Summoner/Overview/SummonerStats.vue @@ -97,8 +97,10 @@
{{ stat / stats.global.count|round }}
  • -
    kill participation
    -
    {{ stats.global.kp|percent }}
    +
    time
    +
    {{ (stats.global.time / 3600).toFixed(1) + 'h' }}
    +
    +
    {{ (stats.global.time / stats.global.count)|secToTime(true) }}
  • kda
    @@ -106,6 +108,10 @@ class="w-1/4" >{{ (stats.global.kills + stats.global.assists) / stats.global.deaths|round }}
  • +
  • +
    kill participation
    +
    {{ stats.global.kp|percent }}
    +