From e2720f1fbe09649e6da282cd33b9794867d3d0fb Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 27 Sep 2015 11:55:34 +0100 Subject: 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. --- src/buffer_utils.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/buffer_utils.hh') 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); -- cgit v1.2.3