diff options
author | Geoff Thorpe <geoff@openssl.org> | 2008-03-16 20:57:12 +0000 |
---|---|---|
committer | Geoff Thorpe <geoff@openssl.org> | 2008-03-16 20:57:12 +0000 |
commit | 7e8481afd12c596b5c905596d6facae60834854a (patch) | |
tree | 2090f658f11ea5fa711814b56d00ff77d691f811 /apps/apps.c | |
parent | 1266cec2feb146764016359776dd0f3cfb31e752 (diff) | |
download | openssl-7e8481afd12c596b5c905596d6facae60834854a.tar.gz |
Fix a nasty cast issue that my compiler was choking on.
Diffstat (limited to 'apps/apps.c')
-rw-r--r-- | apps/apps.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/apps.c b/apps/apps.c index fc99c3445f..5b01244845 100644 --- 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); } |