From 5a3c2e2d0047890bdb287fe2d72d99d9547434d2 Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Sun, 14 Apr 2019 17:11:26 +0100
Subject: [PATCH] Use seconds, not nanoseconds, in status timestamps

---
 node/node.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/node/node.go b/node/node.go
index b42d9111..7deefadf 100644
--- a/node/node.go
+++ b/node/node.go
@@ -234,7 +234,7 @@ func (n *Node) getStatus() *pb.Status {
 	iceMounts, iceOk := n.ice.GetStatus()
 	ns := pb.Status{
 		Name:          n.name,
-		Timestamp:     uint64(time.Now().UTC().UnixNano()),
+		Timestamp:     uint64(time.Now().UTC().Unix()),
 		IcecastOk:     iceOk,
 		IcecastMounts: iceMounts,
 		CurBandwidth:  int32(getCurrentBandwidthUsage()),
-- 
GitLab