Skip to content
Snippets Groups Projects
Commit eed3d9b6 authored by deuce's avatar deuce
Browse files

Fix @UPTIME@ to return 0 if the uptime global isn't initialized yet, or

if time_t is unsigned and the current time is less than uptime.

There's comments that suggest the time(NULL) value is influenced by the
timezone, so possibly therre's a usage of it somewhere with the timezone
not being set comparing to an uptime that was set when timezone *was* set.
In this case, @UPTIME@ will say it's been up for zero days until the timezone
is set in that thread/process, or time(NULL) passes uptime.
parent da541a86
Branches
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment