diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-05-28 15:05:57 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-05-28 15:05:57 +0200 |
commit | 0332e496347f6b563abb86d4ef9650bbd6ebc3e1 (patch) | |
tree | 74dadbe6e4f3216c8a3c8570e203aad0187febf3 /src/server_status.cc | |
parent | 8eb0759e2e8a5405b2dd9e6d72d3bd620b51bee4 (diff) |
Port server to hugin.
Diffstat (limited to 'src/server_status.cc')
-rw-r--r-- | src/server_status.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/server_status.cc b/src/server_status.cc index 7f4714e..67bcb15 100644 --- a/src/server_status.cc +++ b/src/server_status.cc @@ -24,15 +24,14 @@ * along with MIaV; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#include <config.h> #include "server_status.h" #include <stdio.h> -ServerStatus::ServerStatus(Info *i) -{ - info = i; +#include <hugin.hpp> +ServerStatus::ServerStatus() +{ gettimeofday(&oldtime, NULL); for(int cnt = 0; cnt < BUFFERSIZE; cnt++) { @@ -67,7 +66,7 @@ void ServerStatus::checkPoint() for(int cnt = 0; cnt < BUFFERSIZE; cnt++) { total += (double)frametime[cnt]; } - info->info("Status - fps: %f", 1000000.0 / (total / (double)BUFFERSIZE)); + INFO(status, "Status - fps: %f", 1000000.0 / (total / (double)BUFFERSIZE)); } } |