Date: Thursday, February 8, 2007 @ 12:27:10
Author: marc
Path: /cvsroot/carob/carob/src
Modified: Common.cpp (1.68 -> 1.69)
now.tv_sec casted to int64_t to avoid wrapping when multiplying by 1000.
------------+
Common.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: carob/src/Common.cpp
diff -u carob/src/Common.cpp:1.68 carob/src/Common.cpp:1.69
--- carob/src/Common.cpp:1.68 Wed Feb 7 16:32:33 2007
+++ carob/src/Common.cpp Thu Feb 8 12:27:10 2007
@@ -317,7 +317,7 @@
logError(L"getCurrentTimeInMs", L"gettimeofday failed!");
return -1;
}
- return now.tv_sec*1000 + now.tv_usec/1000;
+ return ((int64_t) now.tv_sec)*1000 + now.tv_usec/1000;
}
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits