Permalink
Browse files

using 64 bit longs for timestamps

  • Loading branch information...
1 parent 6b4f808 commit fb95ca0a9987a844ec544f92e58d1ce0f20dd657 @mjpearson committed May 12, 2010
Showing with 6 additions and 3 deletions.
  1. +6 −3 lib/Core.class.php
View
@@ -525,10 +525,13 @@ static public function loadConfigXML() {
static public function getTime() {
// use microtime where possible
// @todo patch thrift .so
- if (PANDRA_64 || (!PANDRA_64 && !function_exists("thrift_protocol_write_binary"))) {
+ if (PANDRA_64) {
+ return round(microtime(true) * 1000000, 3);
+ } else if (!PANDRA_64 && !function_exists("thrift_protocol_write_binary")) {
return round(microtime(true) * 1000, 3);
+ } else {
+ return time();
}
- return time();
}
// ----------------------- THRIFT COLUMN PATH INTERFACE
@@ -786,4 +789,4 @@ static public function getRangeKeys($keySpace,
}
}
}
-?>
+?>

0 comments on commit fb95ca0

Please sign in to comment.