From b22a5b9d5c5bbb0a427686a9d1fd13547e6b2553 Mon Sep 17 00:00:00 2001 From: Maurilio Longo Date: Tue, 7 Oct 2008 17:35:02 +0000 Subject: [PATCH] 2008-10-07 19:33 UTC+0200 Maurilio Longo (maurilio.longo@libero.it) * harbour/source/rtl/seconds.c ! fixed little typo after latest commit. --- harbour/ChangeLog | 4 ++++ harbour/source/rtl/seconds.c | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index eb131acbe2..159cf8bec5 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,10 @@ 2008-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org) */ +2008-10-07 19:33 UTC+0200 Maurilio Longo (maurilio.longo@libero.it) + * harbour/source/rtl/seconds.c + ! fixed little typo after latest commit. + 2008-10-07 18:42 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * source/rtl/seconds.c * Some cleanup after latest change. diff --git a/harbour/source/rtl/seconds.c b/harbour/source/rtl/seconds.c index 198e4b03c3..8cdd9693e9 100644 --- a/harbour/source/rtl/seconds.c +++ b/harbour/source/rtl/seconds.c @@ -313,9 +313,9 @@ HB_EXPORT double hb_secondsCPU( int n ) if( s_timer_interval == 0 ) DosQuerySysInfo( QSV_TIMER_INTERVAL, QSV_TIMER_INTERVAL, ( PVOID ) &s_timer_interval, sizeof( ULONG ) ); - QSGREC ** pBuf = hb_xalloc( BUFSIZE ); + pBuf = hb_xalloc( BUFSIZE ); - if( pBuff ) + if( pBuf ) { APIRET rc = DosQuerySysState( QS_PROCESS, 0L, _getpid(), 0L, pBuf, BUFSIZE ); @@ -331,7 +331,7 @@ HB_EXPORT double hb_secondsCPU( int n ) { if( n & 1 ) d += pTrec->usertime; - + if( n & 2 ) d += pTrec->systime; } @@ -342,6 +342,7 @@ HB_EXPORT double hb_secondsCPU( int n ) hb_xfree( pBuf ); } else + #endif { /* TODO: this code is only for DOS and other platforms which cannot