diff options
author | Thomas Schwinge <tschwinge@gnu.org> | 2007-03-30 14:15:49 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2007-03-30 14:15:49 +0000 |
commit | bee7031bcfed16d89a7c48a269659812e3266050 (patch) | |
tree | 9ee00b1d6f638af8a0c4cd99c9e1aca79bd79382 | |
parent | 2ab9f689f7a1938827f17a914af9751ff487fc96 (diff) |
2007-03-30 Thomas Schwinge <tschwinge@gnu.org>
* inode.c (read_node): Correctly convert from nanoseconds to
microseconds.
-rw-r--r-- | fatfs/ChangeLog | 5 | ||||
-rw-r--r-- | fatfs/inode.c | 7 |
2 files changed, 10 insertions, 2 deletions
diff --git a/fatfs/ChangeLog b/fatfs/ChangeLog index ef878767..1b8721b8 100644 --- a/fatfs/ChangeLog +++ b/fatfs/ChangeLog @@ -1,3 +1,8 @@ +2007-03-30 Thomas Schwinge <tschwinge@gnu.org> + + * inode.c (read_node): Correctly convert from nanoseconds to + microseconds. + 2007-03-28 Thomas Schwinge <tschwinge@gnu.org> * Makefile (fatfs.static): New target. diff --git a/fatfs/inode.c b/fatfs/inode.c index 9122fee4..cce8a084 100644 --- a/fatfs/inode.c +++ b/fatfs/inode.c @@ -1,5 +1,8 @@ /* inode.c - Inode management routines. - Copyright (C) 1994,95,96,97,98,99,2000,02,03 Free Software Foundation, Inc. + + Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2002, 2003, 2007 + Free Software Foundation, Inc. + Modified for fatfs by Marcus Brinkmann <marcus@gnu.org> This file is part of the GNU Hurd. @@ -384,7 +387,7 @@ read_node (struct node *np, vm_address_t buf) fat_to_epoch (dr->write_date, dr->write_time, &ts); st->st_ctime = st->st_mtime = st->st_atime = ts.tv_sec; st->st_ctime_usec = st->st_mtime_usec = st->st_atime_usec - = ts.tv_nsec * 1000; + = ts.tv_nsec / 1000; } st->st_blksize = bytes_per_sector; |