diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-09-27 11:55:34 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-09-27 11:55:34 +0100 |
| commit | e2720f1fbe09649e6da282cd33b9794867d3d0fb (patch) | |
| tree | bb5f906151c28fc5fde6078b842a71c0ba4fc318 /src/buffer_utils.hh | |
| parent | 122a799ecb7dd1a6d6ff392ab9dc9d88fafad770 (diff) | |
Store timespec for buffer fs timestamps, not just time_t
time_t has a resolution of one second, which cause troubles when
a file changes multiple time during that same second.
Diffstat (limited to 'src/buffer_utils.hh')
| -rw-r--r-- | src/buffer_utils.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer_utils.hh b/src/buffer_utils.hh index 33609150..ab02451f 100644 --- a/src/buffer_utils.hh +++ b/src/buffer_utils.hh @@ -34,7 +34,7 @@ Buffer* create_fifo_buffer(String name, int fd, bool scroll = false); Buffer* create_buffer_from_data(StringView data, StringView name, Buffer::Flags flags, - time_t fs_timestamp = InvalidTime); + timespec fs_timestamp = InvalidTime); void write_to_debug_buffer(StringView str); |
