summaryrefslogtreecommitdiffhomepage
path: root/table/path.go
diff options
context:
space:
mode:
Diffstat (limited to 'table/path.go')
-rw-r--r--table/path.go2
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,