diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-12-04 01:11:13 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-12-04 01:11:13 -0800 |
| commit | 060ce1d9a2f5498df24d0bd8bfb0b4a64f9b34d2 (patch) | |
| tree | a8c8ecbc6630afae2eb55de6e9871a3f3c741d72 | |
| parent | 5f8c8caec6a66dd47c79b5acc2a31eb7e9b3fd3c (diff) | |
| download | seaweedfs-060ce1d9a2f5498df24d0bd8bfb0b4a64f9b34d2.tar.xz seaweedfs-060ce1d9a2f5498df24d0bd8bfb0b4a64f9b34d2.zip | |
HCFS: adjust file modification time to milliseconds
| -rw-r--r-- | other/java/hdfs/src/main/java/seaweed/hdfs/SeaweedFileSystemStore.java | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |
