Skip to content

Commit

Permalink
Fixed#116 via changing to signed for negative diff (#146)
Browse files Browse the repository at this point in the history
Addressed : Issue #116 [syelogd] Negative timing difference between successive events with option /d (delta time)
  • Loading branch information
warlockz authored Sep 30, 2020
1 parent a3bdeaf commit d8b8144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/syelog/syelogd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ static PCSTR FileTimeToString(PCHAR pszBuffer, DWORD cbBuffer, FILETIME ftTime)
ul.LowPart = ftTime.dwLowDateTime;
ul.HighPart = ftTime.dwHighDateTime;

ULONG64 delta = ul.QuadPart - s_llLastTime;
LONG64 delta = ul.QuadPart - s_llLastTime;
s_llLastTime = ul.QuadPart;
delta /= 10000;

Expand Down

0 comments on commit d8b8144

Please sign in to comment.