diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-11-16 10:06:47 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-11-16 12:23:18 +0900 |
commit | c1bca2555919f9f2a7dd9d13dc3e14a4bf6a589a (patch) | |
tree | 3a19cc12f27f146df079e03a487acea492e8d595 /pkg/server/server.go | |
parent | 893dbd5c074c097f0c9921d3131a072011fb7e6a (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.go | 4 |
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, |