diff options
author | deva <deva> | 2005-06-19 20:04:43 +0000 |
---|---|---|
committer | deva <deva> | 2005-06-19 20:04:43 +0000 |
commit | 6d7a1f124f38a4358f517437757f6f0c3fe21d8b (patch) | |
tree | 48beeb9589d50b8293ca71473a3e344036872cfa /src/server_status.h | |
parent | 52fd913be8b044f1d064973c53b4467e5bd153fe (diff) |
ImgEncoder now uses the file class for output, through jpeg_mem_dest.
Diffstat (limited to 'src/server_status.h')
-rw-r--r-- | src/server_status.h | 10 |
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; |