Commit 540dd861 authored by Matteo Quintiliani's avatar Matteo Quintiliani
Browse files

Fixed bug calling Windows function Sleep()


git-svn-id: file:///home/quintiliani/svncopy/nmxptool/trunk@898 3cd66e75-5955-46cb-a940-c26e5fc5497d
parent b917bcdf
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2,6 +2,9 @@
nmxptool Release History
#########################

* Release 1.2.1     (2008/03/09)
   - Fixed bug: argument of Windows function Sleep() is in milliseconds.

* Release 1.2.0     (2008/03/07)
   - Reorganized structure of directories.
          Compilation in a single shot of configure and make.
+2 −2
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@
 * 	Istituto Nazionale di Geofisica e Vulcanologia - Italy
 *	quintiliani@ingv.it
 *
 * $Id: nmxp_base.c,v 1.63 2008-03-05 11:10:51 mtheo Exp $
 * $Id: nmxp_base.c,v 1.64 2008-03-09 20:23:54 mtheo Exp $
 *
 */

@@ -708,7 +708,7 @@ NMXP_DATA_PROCESS *nmxp_processCompressedData(char* buffer_data, int length_data

unsigned int nmxp_sleep(unsigned int sleep_time) {
#ifdef HAVE_WINDOWS_H
    Sleep(sleep_time);
    Sleep(sleep_time * 1000);
    return 0;
#else
    return sleep(sleep_time);