Skip to content

inconsistent value types from uv_uptime #1294

Closed

Description

@refack

On Windows returned value is really a double (with fractions).
uptime = (double) (object_type->PerfTime.QuadPart - value) / (double) object_type->PerfFreq.QuadPart;

On others it's an integer (upcast to double):

struct timespec
	time_t  tv_sec    Seconds. 
	long    tv_nsec   Nanoseconds. 

*uptime = now.tv_sec;

Activity

  1. gibfahn commented on Apr 9, 2017

    @gibfahn

    Most recent change: 556fe1a (cc/ @bnoordhuis )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions