summaryrefslogtreecommitdiff
path: root/server/server_status.cc
diff options
context:
space:
mode:
authordeva <deva>2006-07-20 17:53:17 +0000
committerdeva <deva>2006-07-20 17:53:17 +0000
commit7d39c063ea84b9b30dbe669ac4ae641a49506836 (patch)
treeef1ead10d1736e9ad7ffe139872c86fd2ee00901 /server/server_status.cc
parentc8df40b62cf30029a4acd1a57c8c54add54dda9b (diff)
Utilized the global info object.
Utilized the global info object. Utilized the global info object.
Diffstat (limited to 'server/server_status.cc')
-rw-r--r--server/server_status.cc8
1 files changed, 3 insertions, 5 deletions
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 <config.h>
#include "server_status.h"
-
+#include "info.h"
#include <stdio.h>
-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));
}
}