projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1266cec
)
Fix a nasty cast issue that my compiler was choking on.
author
Geoff Thorpe
<geoff@openssl.org>
Sun, 16 Mar 2008 20:57:12 +0000
(20:57 +0000)
committer
Geoff Thorpe
<geoff@openssl.org>
Sun, 16 Mar 2008 20:57:12 +0000
(20:57 +0000)
apps/apps.c
patch
|
blob
|
history
diff --git
a/apps/apps.c
b/apps/apps.c
index fc99c3445f413293d670da6e08dc2340a240d9b4..5b012448459399ed3052e910a636ec4ed4ff65ca 100644
(file)
--- a/
apps/apps.c
+++ b/
apps/apps.c
@@
-2589,7
+2589,11
@@
double app_tminterval(int stop,int usertime)
if (usertime) now = rus.tms_utime;
if (stop==TM_START) tmstart = now;
- else ret = (now - tmstart)/(double)sysconf(_SC_CLK_TCK);
+ else
+ {
+ long int tck = sysconf(_SC_CLK_TCK);
+ ret = (now - tmstart)/(double)tck;
+ }
return (ret);
}