From 7d39c063ea84b9b30dbe669ac4ae641a49506836 Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 20 Jul 2006 17:53:17 +0000 Subject: Utilized the global info object. Utilized the global info object. Utilized the global info object. --- server/server_status.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'server/server_status.cc') diff --git a/server/server_status.cc b/server/server_status.cc index 7f4714e..88bd35c 100644 --- a/server/server_status.cc +++ b/server/server_status.cc @@ -26,13 +26,11 @@ */ #include #include "server_status.h" - +#include "info.h" #include -ServerStatus::ServerStatus(Info *i) +ServerStatus::ServerStatus() { - info = i; - gettimeofday(&oldtime, NULL); for(int cnt = 0; cnt < BUFFERSIZE; cnt++) { @@ -67,7 +65,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)); + MIaV::info->info("Status - fps: %f", 1000000.0 / (total / (double)BUFFERSIZE)); } } -- cgit v1.2.3