From bee7031bcfed16d89a7c48a269659812e3266050 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Fri, 30 Mar 2007 14:15:49 +0000 Subject: 2007-03-30 Thomas Schwinge * inode.c (read_node): Correctly convert from nanoseconds to microseconds. --- fatfs/ChangeLog | 5 +++++ fatfs/inode.c | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'fatfs') 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 + + * inode.c (read_node): Correctly convert from nanoseconds to + microseconds. + 2007-03-28 Thomas Schwinge * 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 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; -- cgit v1.2.3