diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/peer.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/peer.go b/server/peer.go index 07a1288b..da305894 100644 --- a/server/peer.go +++ b/server/peer.go @@ -303,11 +303,11 @@ func (peer *Peer) ToApiStruct() *api.Peer { uptime := int64(0) if timer.State.Uptime != 0 { - uptime = int64(time.Now().Sub(time.Unix(timer.State.Uptime, 0)).Seconds()) + uptime = timer.State.Uptime } downtime := int64(0) if timer.State.Downtime != 0 { - downtime = int64(time.Now().Sub(time.Unix(timer.State.Downtime, 0)).Seconds()) + downtime = timer.State.Downtime } timerconf := &api.TimersConfig{ |