Skip to content

x730-script needs fix for date #6

Description

@michaelu123

A few years ago the Unix time in seconds gained one more digit. Since then, the code
date +%s%N | cut -b1-13
must be changed to
date +%s%N | cut -b1-12
to obtain a number measuring 1/100 of a second.
To verify:

x1=`date +%s%N | cut -b1-12`; sleep 5; x2=`date +%s%N | cut -b1-12`;expr $x2 - $x1

returns a number close to 500.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions