From 1c48f6948d66d921d1daa9e7a60b0fb1bbe8fe57 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Tue, 15 Jan 2013 19:21:24 -0800 Subject: [PATCH] Fix "age". --- src/cpp/ripple/NetworkOPs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpp/ripple/NetworkOPs.cpp b/src/cpp/ripple/NetworkOPs.cpp index e74374df9..89c0d0240 100644 --- a/src/cpp/ripple/NetworkOPs.cpp +++ b/src/cpp/ripple/NetworkOPs.cpp @@ -1176,7 +1176,7 @@ Json::Value NetworkOPs::getServerInfo(bool human, bool admin) static_cast(Json::UInt(lpClosed->getReserve(0) * baseFee / baseRef)) / SYSTEM_CURRENCY_PARTS; l["reserve_inc_xrp"] = static_cast(Json::UInt(lpClosed->getReserveInc() * baseFee / baseRef)) / SYSTEM_CURRENCY_PARTS; - l["age"] = static_cast(lpClosed->getCloseTimeNC()) - getCloseTimeNC(); + l["age"] = Json::UInt(getCloseTimeNC() - lpClosed->getCloseTimeNC()); } info["closed_ledger"] = l; }