diff options
author | Timothy J Fontaine <tjfontaine@gmail.com> | 2013-03-23 00:51:11 +0400 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-03-23 22:32:14 +0400 |
commit | 51f128d64b250dfeb128aab5117b5bbcd2cc51b5 (patch) | |
tree | ec1ef991a32ab51988bff063ffd6c558797d4c72 /src/node_stat_watcher.h | |
parent | 648a0726d01b1c0d075560bc9036252635c8f12f (diff) |
fs: uv_[fl]stat now reports subsecond resolution
While libuv supports reporting subsecond stat resolution across
platforms, to actually get that resolution your platform and filesystem
must support it (not HFS, ext[23], fat), otherwise the nsecs are 0
Diffstat (limited to 'src/node_stat_watcher.h')
-rw-r--r-- | src/node_stat_watcher.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_stat_watcher.h b/src/node_stat_watcher.h index 18afa79944f..94ed10a0eea 100644 --- a/src/node_stat_watcher.h +++ b/src/node_stat_watcher.h @@ -44,8 +44,8 @@ class StatWatcher : ObjectWrap { private: static void Callback(uv_fs_poll_t* handle, int status, - const uv_statbuf_t* prev, - const uv_statbuf_t* curr); + const uv_stat_t* prev, + const uv_stat_t* curr); void Stop(); uv_fs_poll_t* watcher_; |