HCFS: adjust file modification time to milliseconds

This commit is contained in:
Chris Lu 2018-12-04 01:11:13 -08:00
parent 5f8c8caec6
commit 060ce1d9a2

View file

@ -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();