summaryrefslogtreecommitdiff
path: root/src/server_status.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/server_status.h')
-rw-r--r--src/server_status.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/server_status.h b/src/server_status.h
index 58de61c..73b8ecb 100644
--- a/src/server_status.h
+++ b/src/server_status.h
@@ -31,6 +31,9 @@
/*
* $Log$
+ * Revision 1.5 2005/06/19 20:04:43 deva
+ * ImgEncoder now uses the file class for output, through jpeg_mem_dest.
+ *
* Revision 1.4 2005/06/19 11:44:14 deva
* Cleaned up a log of logging.
* Fixed server queue (shouldn't happen).
@@ -52,8 +55,11 @@
#include <sys/time.h>
+// How many steps to do avarage calculation over.
#define BUFFERSIZE 100
-#define UPD 1500
+
+// Interval in us (microseconds)
+#define UPD 60 * 1000 * 1000 // 1 minute
class ServerStatus {
public:
@@ -63,7 +69,7 @@ public:
void checkPoint();
private:
- int frame;
+ long long interval;
Info *info;
unsigned int frametime[BUFFERSIZE];
struct timeval time;