summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngo Huerner <ingo_huerner@mentor.com>2017-07-10 09:08:41 +0200
committerGitHub <noreply@github.com>2017-07-10 09:08:41 +0200
commitb438e26224a78ee456847773184c67a1784fd64c (patch)
tree5fbe63f87773e8af80e53f7798f72321efbae5d6
parent15eff7b8950c712d848a65f0f692a23fd7fa9f56 (diff)
parentc48c17238b5c55cc97bfcca19ca623cee276501f (diff)
downloadpersistence-client-library-b438e26224a78ee456847773184c67a1784fd64c.tar.gz
Merge pull request #8 from tolkien-joh/master
fix error on compiling meta-ivi 12.0 for qemux86, vexpressa9
-rw-r--r--test/persistence_client_library_benchmark.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/persistence_client_library_benchmark.c b/test/persistence_client_library_benchmark.c
index 3c48469..900a6ec 100644
--- a/test/persistence_client_library_benchmark.c
+++ b/test/persistence_client_library_benchmark.c
@@ -71,8 +71,8 @@ inline long getMsDuration(struct timespec* start, struct timespec* end)
void init_benchmark(int numLoops)
{
int i = 0;
- long durationInit = 0;
- long durationDeInit = 0;
+ long long durationInit = 0;
+ long long durationDeInit = 0;
struct timespec initStart, initEnd;
struct timespec deInitStart, deInitEnd;
int shutdownReg = PCL_SHUTDOWN_TYPE_FAST | PCL_SHUTDOWN_TYPE_NORMAL;
@@ -101,7 +101,8 @@ void init_benchmark(int numLoops)
void read_benchmark(int numLoops)
{
int ret = 0, i = 0;
- long duration = 0, size = 0;
+ long long duration = 0;
+ long size = 0;
struct timespec readStart, readEnd;
char key[128] = { 0 };
unsigned char buffer[7168] = {0}; // 7kB