summaryrefslogtreecommitdiff
path: root/server/server_status.cc
diff options
context:
space:
mode:
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));
}
}