filestat
should contain timestamps in nanoseconds, not seconds
#4358
Labels
Milestone
filestat
should contain timestamps in nanoseconds, not seconds
#4358
Describe the bug
The
filestat
type returned byfd_filestat_get
should contain timestamps in nanoseconds. However, currently Wasmer returns timestamps in seconds for directories, e.g. preopened directories.Steps to reproduce
Compile this C snippet with wasi-sdk and run the binary with Wasmer.
clang wasmer-dir-time.c wasmer run --dir . a.out
Expected behavior
It should print a reasonable timestamp like:
Actual behavior
It prints a very small number:
The text was updated successfully, but these errors were encountered: