From 379a5998fad3cd736704cf78be14d25ff4617723 Mon Sep 17 00:00:00 2001 From: sje Date: Wed, 23 May 2007 23:45:25 +0000 Subject: added newlines removed warnings fix for icons and options error git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@185 4f64403b-2f21-0410-a795-97e2b3489a10 --- ping_protocol/pingthread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ping_protocol/pingthread.cpp') diff --git a/ping_protocol/pingthread.cpp b/ping_protocol/pingthread.cpp index c9a5fbd..275667b 100644 --- a/ping_protocol/pingthread.cpp +++ b/ping_protocol/pingthread.cpp @@ -74,7 +74,7 @@ DWORD WINAPI sttCheckStatusThreadProc( void *vp) end_t = clock(); - int wait = (options.ping_period - ((end_t - start_t) / (double)CLOCKS_PER_SEC)) * 1000; + int wait = (int)((options.ping_period - ((end_t - start_t) / (double)CLOCKS_PER_SEC)) * 1000); if(wait > 0) WaitForSingleObjectEx(hWakeEvent, wait, TRUE); @@ -140,7 +140,7 @@ DWORD WINAPI sttCheckStatusThreadProc( void *vp) i->round_trip_time = pa.round_trip_time; history_entry.first = i->round_trip_time; - history_entry.second = time(0); + history_entry.second = (DWORD)time(0); i->history.push_back(history_entry); // maintain history (-1 represents no response) while(i->history.size() >= MAX_HISTORY) { -- cgit v1.2.3