diff options
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)); } } |