mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
HCFS: adjust file modification time to milliseconds
This commit is contained in:
parent
5f8c8caec6
commit
060ce1d9a2
|
@ -133,7 +133,7 @@ public class SeaweedFileSystemStore {
|
||||||
boolean isDir = entry.getIsDirectory();
|
boolean isDir = entry.getIsDirectory();
|
||||||
int block_replication = 1;
|
int block_replication = 1;
|
||||||
int blocksize = 512;
|
int blocksize = 512;
|
||||||
long modification_time = attributes.getMtime();
|
long modification_time = attributes.getMtime() * 1000; // milliseconds
|
||||||
long access_time = 0;
|
long access_time = 0;
|
||||||
FsPermission permission = FsPermission.createImmutable((short) attributes.getFileMode());
|
FsPermission permission = FsPermission.createImmutable((short) attributes.getFileMode());
|
||||||
String owner = attributes.getUserName();
|
String owner = attributes.getUserName();
|
||||||
|
|
Loading…
Reference in a new issue