From 6b4bb899c8cc311b05c639885f04d5f8901f15a9 Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Thu, 22 Mar 2001 04:26:14 +0000 Subject: [PATCH] dos_gettime() fix by Tom Ehlert. git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@171 6ac86273-5f31-0410-b378-82cca8765d1b --- kernel/fatfs.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kernel/fatfs.c b/kernel/fatfs.c index 6242178..5aeefdb 100644 --- a/kernel/fatfs.c +++ b/kernel/fatfs.c @@ -36,6 +36,9 @@ BYTE *RcsId = "$Id$"; /* * $Log$ + * Revision 1.11 2001/03/22 04:26:14 bartoldeman + * dos_gettime() fix by Tom Ehlert. + * * Revision 1.10 2001/03/21 02:56:25 bartoldeman * See history.txt for changes. Bug fixes and HMA support are the main ones. * @@ -969,9 +972,7 @@ time dos_gettime() (BYTE FAR *) & Minute, (BYTE FAR *) & Second, (BYTE FAR *) & Hundredth); - h = Second * 10 + ((Hundredth + 5) / 10); - Time = TM_ENCODE(Hour, Minute, h); - return Time; + return TM_ENCODE(Hour, Minute, Second/2); #else return 0; #endif