summaryrefslogtreecommitdiff
path: root/src/server_status.cc
diff options
context:
space:
mode:
authordeva <deva>2005-06-19 20:04:43 +0000
committerdeva <deva>2005-06-19 20:04:43 +0000
commit6d7a1f124f38a4358f517437757f6f0c3fe21d8b (patch)
tree48beeb9589d50b8293ca71473a3e344036872cfa /src/server_status.cc
parent52fd913be8b044f1d064973c53b4467e5bd153fe (diff)
ImgEncoder now uses the file class for output, through jpeg_mem_dest.
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];