summaryrefslogtreecommitdiff
path: root/ping_protocol/pingthread.cpp
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-05-23 23:45:25 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-05-23 23:45:25 +0000
commit379a5998fad3cd736704cf78be14d25ff4617723 (patch)
tree2d49bf2130e0f9da40632ffff1bbcb01b475e889 /ping_protocol/pingthread.cpp
parente2725c171125f0901b6fdc94f8bb66f35cab8d36 (diff)
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
Diffstat (limited to 'ping_protocol/pingthread.cpp')
-rw-r--r--ping_protocol/pingthread.cpp4
1 files changed, 2 insertions, 2 deletions
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) {