stellar-deprecated / stellard

INACTIVE. Server in the Stellar network. Maintains the distributed ledger. Introduces and validates transactions. This repo is not in active development, it is being replaced by stellar-core.
Other
270 stars 60 forks source link

Added server_uptime to server_info RPC. Fixes #52. #65

Closed marco89nish closed 10 years ago

thejollyrogers commented 10 years ago

after merge conflicts, :+1:

jedmccaleb commented 10 years ago

if (uptime_sec < 0) uptime_sec = -uptime_sec;

You shouldn't do that. Just leave it negative or make it 0

marco89nish commented 10 years ago

^ Being set to 0 from now on. It's cast to unsigned integer so negative value isn't acceptable there.