Actions
Bug #3677
opennfdc status reports wrong uptime if system clock has been changed
Status:
New
Priority:
Low
Assignee:
-
Category:
Tools
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
3.00 h
Description
Steps to reproduce:
- start NFD
- change system clock (manually or with NTP client)
- 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