Project

General

Profile

Actions

Bug #3677

open

nfdc status reports wrong uptime if system clock has been changed

Added by Junxiao Shi over 8 years ago. Updated about 7 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Tools
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
3.00 h

Description

Steps to reproduce:

  1. start NFD
  2. change system clock (manually or with NTP client)
  3. execute nfdc status

Expected: "uptime" field reflects the actual duration NFD has been running

Actual: "uptime" field is inaccurate

Root cause: nfdc calculates uptime by subtracting NFD start timestamp from current timestamp.
Since both timestamps are based on system clock, changing the system clock results in inaccurate uptime.

Actions

Also available in: Atom PDF