summaryrefslogtreecommitdiffhomepage
path: root/pkg/server/server.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-11-16 10:06:47 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-11-16 12:23:18 +0900
commitc1bca2555919f9f2a7dd9d13dc3e14a4bf6a589a (patch)
tree3a19cc12f27f146df079e03a487acea492e8d595 /pkg/server/server.go
parent893dbd5c074c097f0c9921d3131a072011fb7e6a (diff)
use google/protobuf/timestamp.proto
use google/protobuf/timestamp.proto instead of our own way to represent time. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'pkg/server/server.go')
-rw-r--r--pkg/server/server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/server/server.go b/pkg/server/server.go
index 256105aa..ce4f3b22 100644
--- a/pkg/server/server.go
+++ b/pkg/server/server.go
@@ -3380,8 +3380,8 @@ func (s *BgpServer) ListRpki(ctx context.Context, r *api.ListRpkiRequest, fn fun
RemotePort: uint32(r.Config.Port),
},
State: &api.RPKIState{
- Uptime: r.State.Uptime,
- Downtime: r.State.Downtime,
+ Uptime: config.ProtoTimestamp(r.State.Uptime),
+ Downtime: config.ProtoTimestamp(r.State.Downtime),
Up: r.State.Up,
RecordIpv4: r.State.RecordsV4,
RecordIpv6: r.State.RecordsV6,