aboutsummaryrefslogtreecommitdiff
path: root/other/java
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-12-04 01:11:13 -0800
committerChris Lu <chris.lu@gmail.com>2018-12-04 01:11:13 -0800
commit060ce1d9a2f5498df24d0bd8bfb0b4a64f9b34d2 (patch)
treea8c8ecbc6630afae2eb55de6e9871a3f3c741d72 /other/java
parent5f8c8caec6a66dd47c79b5acc2a31eb7e9b3fd3c (diff)
downloadseaweedfs-060ce1d9a2f5498df24d0bd8bfb0b4a64f9b34d2.tar.xz
seaweedfs-060ce1d9a2f5498df24d0bd8bfb0b4a64f9b34d2.zip
HCFS: adjust file modification time to milliseconds
Diffstat (limited to 'other/java')
-rw-r--r--other/java/hdfs/src/main/java/seaweed/hdfs/SeaweedFileSystemStore.java2
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();