diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-03-02 08:44:39 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-03-02 08:44:39 +0900 |
commit | c46d6be52f93b94cf92ac7cbe4af4f141d5cfb3c (patch) | |
tree | 4c5ad799b1a8517793d5109e26925e770c054909 /table | |
parent | d5911e2a10d55974da8466cc820beedd36785b63 (diff) |
table: use raw data for age instead of duration
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table')
-rw-r--r-- | table/path.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/table/path.go b/table/path.go index 622ba6d2..1a10b965 100644 --- a/table/path.go +++ b/table/path.go @@ -266,7 +266,7 @@ func (path *Path) ToApiStruct(id string) *api.Path { return &api.Path{ Nlri: n, Pattrs: pattrs, - Age: int64(time.Now().Sub(path.OriginInfo().timestamp).Seconds()), + Age: path.OriginInfo().timestamp.Unix(), IsWithdraw: path.IsWithdraw, Validation: int32(path.OriginInfo().validation.ToInt()), Filtered: path.Filtered(id) == POLICY_DIRECTION_IN, |