Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src: round nsec instead of truncating stat times #12607

Closed
wants to merge 10 commits into from
Prev Previous commit
Next Next commit
use common iswindows in test
  • Loading branch information
sciolist committed May 4, 2017
commit 4e113b9d7cdd0c7771d1a237cf73b8b45c71774b
2 changes: 1 addition & 1 deletion test/parallel/test-fs-utimes.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function stat_resource(resource) {

function check_mtime(resource, mtime) {
const stats = stat_resource(resource);
if (process.platform === 'win32') {
if (common.isWindows) {
// check ms precision on windows.
return Math.floor(mtime) === Math.floor(stats.mtime);
} else {
Expand Down