From 060ce1d9a2f5498df24d0bd8bfb0b4a64f9b34d2 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 4 Dec 2018 01:11:13 -0800 Subject: [PATCH] HCFS: adjust file modification time to milliseconds --- .../hdfs/src/main/java/seaweed/hdfs/SeaweedFileSystemStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/other/java/hdfs/src/main/java/seaweed/hdfs/SeaweedFileSystemStore.java b/other/java/hdfs/src/main/java/seaweed/hdfs/SeaweedFileSystemStore.java index a36e9fc8e..eddf9e89e 100644 --- a/other/java/hdfs/src/main/java/seaweed/hdfs/SeaweedFileSystemStore.java +++ b/other/java/hdfs/src/main/java/seaweed/hdfs/SeaweedFileSystemStore.java @@ -133,7 +133,7 @@ public class SeaweedFileSystemStore { boolean isDir = entry.getIsDirectory(); int block_replication = 1; int blocksize = 512; - long modification_time = attributes.getMtime(); + long modification_time = attributes.getMtime() * 1000; // milliseconds long access_time = 0; FsPermission permission = FsPermission.createImmutable((short) attributes.getFileMode()); String owner = attributes.getUserName();