[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/libnet cque.cpp
From: |
Markus Gothe |
Subject: |
[Gnash-commit] gnash/libnet cque.cpp |
Date: |
Sat, 29 Mar 2008 02:56:55 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Markus Gothe <nihilus> 08/03/29 02:56:55
Modified files:
libnet : cque.cpp
Log message:
use *_cast in C++
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/libnet/cque.cpp?cvsroot=gnash&r1=1.4&r2=1.5
Patches:
Index: cque.cpp
===================================================================
RCS file: /sources/gnash/gnash/libnet/cque.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- cque.cpp 29 Mar 2008 02:46:59 -0000 1.4
+++ cque.cpp 29 Mar 2008 02:56:54 -0000 1.5
@@ -246,7 +246,7 @@
struct timespec now;
clock_gettime (CLOCK_REALTIME, &now);
cerr << "Que lifespan is " <<
- (float)((now.tv_sec - _stats.start.tv_sec) + ((now.tv_nsec -
_stats.start.tv_nsec)/1e9)) << " seconds" << endl;
+ static_cast<float>((now.tv_sec - _stats.start.tv_sec) + ((now.tv_nsec -
_stats.start.tv_nsec)/1e9)) << " seconds" << endl;
cerr << "Total number of bytes is " << _stats.totalbytes << " bytes" <<
endl;
cerr << "Total number of packets pushed to queue is: " << _stats.totalin
<< endl;
cerr << "Total number of packets popped from queue is: " <<
_stats.totalout << endl;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash/libnet cque.cpp,
Markus Gothe <=