summaryrefslogtreecommitdiffhomepage
path: root/table
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-01-23 15:32:30 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-01-23 15:32:30 +0900
commit247ae24d08fa0c695b13ea29dad5294b0e3fa418 (patch)
tree4e7a66bea8c4b38283a10594c205b4abd5c4acce /table
parent07310dec12ca1d8e9dc0f04798ed4cac9bd0dd6d (diff)
table: rename Time in Path to Age
More appropriate. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table')
-rw-r--r--table/path.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/table/path.go b/table/path.go
index 391e3298..d847dc1d 100644
--- a/table/path.go
+++ b/table/path.go
@@ -89,12 +89,12 @@ func (pd *PathDefault) MarshalJSON() ([]byte, error) {
Network string
Nexthop string
Attrs []bgp.PathAttributeInterface
- Time float64
+ Age float64
}{
Network: pd.getPrefix(),
Nexthop: pd.nexthop.String(),
Attrs: pd.getPathAttrs(),
- Time: time.Now().Sub(pd.timestamp).Seconds(),
+ Age: time.Now().Sub(pd.timestamp).Seconds(),
})
}