X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Ftimestamp.h;h=91006fc0ac849f8f3274822714551f6a392ecb4c;hb=48c05c63f94c294d4b9982a228682c27e8d41dd2;hp=4dcc429b9f58d23bee876a90b27061473f9747c5;hpb=7acdc3aecd7ce546727ae8239e0d942c2a00db43;p=wimlib diff --git a/src/timestamp.h b/src/timestamp.h index 4dcc429b..91006fc0 100644 --- a/src/timestamp.h +++ b/src/timestamp.h @@ -63,7 +63,7 @@ wim_timestamp_to_timespec(u64 timestamp) { struct timespec ts; ts.tv_sec = (timestamp - intervals_1601_to_1970) / intervals_per_second; - ts.tv_nsec = ((timestamp - intervals_1601_to_1970) % intervals_per_second) * + ts.tv_nsec = ((timestamp - intervals_1601_to_1970) % intervals_per_second) * nanoseconds_per_interval; return ts; } @@ -72,6 +72,6 @@ extern u64 get_wim_timestamp(); extern void -wim_timestamp_to_str(u64 timestamp, char *buf, size_t len); +wim_timestamp_to_str(u64 timestamp, tchar *buf, size_t len); #endif