summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2010-09-17 13:47:05 +0200
committerBjörn Jacke <bj@sernet.de>2010-09-17 13:49:11 +0200
commit10eefd85c988503309021316f744ebb25579b873 (patch)
treede9f991aefa28947f9475daae1fe5d76e7f4c662 /source3/client
parent311744a1312d4be51c0d50a71884f604ea2e3b99 (diff)
downloadsamba-10eefd85c988503309021316f744ebb25579b873.tar.gz
samba-10eefd85c988503309021316f744ebb25579b873.tar.bz2
samba-10eefd85c988503309021316f744ebb25579b873.zip
s3: fix order of arguments in nsec_time_diff call
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index cb9ba24e16..86d64f6afa 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -1119,7 +1119,7 @@ static int do_get(const char *rname, const char *lname_in, bool reget)
int this_time;
clock_gettime_mono(&tp_end);
- this_time = nsec_time_diff(&tp_start,&tp_end)/1000000;
+ this_time = nsec_time_diff(&tp_end,&tp_start)/1000000;
get_total_time_ms += this_time;
get_total_size += nread;
@@ -1768,7 +1768,7 @@ static int do_put(const char *rname, const char *lname, bool reput)
int this_time;
clock_gettime_mono(&tp_end);
- this_time = nsec_time_diff(&tp_start,&tp_end)/1000000;
+ this_time = nsec_time_diff(&tp_end,&tp_start)/1000000;
put_total_time_ms += this_time;
put_total_size += state.nread;