summaryrefslogtreecommitdiff
path: root/src/server_status.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/server_status.cc')
-rw-r--r--src/server_status.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/server_status.cc b/src/server_status.cc
index e65cef2..2b2395c 100644
--- a/src/server_status.cc
+++ b/src/server_status.cc
@@ -31,6 +31,9 @@
/*
* $Log$
+ * Revision 1.10 2005/06/19 20:04:43 deva
+ * ImgEncoder now uses the file class for output, through jpeg_mem_dest.
+ *
* Revision 1.9 2005/06/19 11:44:14 deva
* Cleaned up a log of logging.
* Fixed server queue (shouldn't happen).
@@ -76,7 +79,7 @@ ServerStatus::ServerStatus(Info *i)
gettimeofday(&time, NULL);
- frame = 0;
+ interval = 0;
}
ServerStatus::~ServerStatus()
@@ -95,8 +98,9 @@ void ServerStatus::checkPoint()
gettimeofday(&time, NULL);
- frame++;
- if(frame % UPD == 0) {
+ interval += frametime[0];
+ if(interval > UPD) {
+ interval = 0;
double total = 0.0;
for(int cnt = 0; cnt < BUFFERSIZE; cnt++) {
total += (double)frametime[cnt];