Author: tkreuzer
Date: Tue Feb 3 17:52:25 2009
New Revision: 39359
URL:
http://svn.reactos.org/svn/reactos?rev=39359&view=rev
Log:
tacert: use ULONG format instead of long long when displaying the time in ms.
Modified:
trunk/reactos/base/applications/network/tracert/tracert.c
Modified: trunk/reactos/base/applications/network/tracert/tracert.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/tracert/tracert.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/tracert/tracert.c [iso-8859-1] Tue Feb 3
17:52:25 2009
@@ -396,7 +396,7 @@
DebugPrint(_T("Rouge packet: header id, process id %d"),
TTLExceedHdr->OrigIcmpHeader.id, GetCurrentProcessId());
return -1;
}
- _tprintf(_T("%3Ld ms"), (pInfo->lTimeEnd -
pInfo->lTimeStart) / pInfo->TicksPerMs.QuadPart);
+ _tprintf(_T("%3ld ms"), (ULONG)((pInfo->lTimeEnd -
pInfo->lTimeStart) / pInfo->TicksPerMs.QuadPart));
return 0;
case ECHO_REPLY :
@@ -407,7 +407,7 @@
DebugPrint(_T("Rouge packet: header id %d, process id
%d"), IcmpHdr->icmpheader.id, GetCurrentProcessId());
return -1;
}
- _tprintf(_T("%3Ld ms"), (pInfo->lTimeEnd -
pInfo->lTimeStart) / pInfo->TicksPerMs.QuadPart);
+ _tprintf(_T("%3ld ms"), (ULONG)((pInfo->lTimeEnd -
pInfo->lTimeStart) / pInfo->TicksPerMs.QuadPart));
return 1;
case DEST_UNREACHABLE :