Commit ff5ded29 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Added get-boottime-info. (Bug 6).

Measure the number of existing conferences and persons.
parent 242eca0a
2003-08-12 Per Cederqvist <ceder@ceder.dyndns.org>
Added get-boottime-info. (Bug 6).
* src/server/testsuite/lyskomd.0/03.exp,
src/server/testsuite/lyskomd.0/01.exp: Test get-boottime-info.
* src/server/stats.h, src/server/stats.c (read_stat_value): New
function.
* src/server/simple-cache.c (boottime_info): New static variable.
(init_cache): Initialize boottime_info.
(get_boottime_info): New request.
* src/server/prot-a.c (prot_a_reply): Handle
rt_static_server_info.
* src/server/prot-a-output.h, src/server/prot-a-output.c
(prot_a_output_static_server_info): New function.
* src/server/fncdef.txt: Added get_boottime_info.
* src/server/connections.h (enum res_type): Added
rt_static_server_info.
(union result_holder): Added static_server_info.
* src/include/services.h (get_boottime_info): New request.
* src/include/kom-types.h (Static_server_info): New type.
* doc/constructs.expected: Updated.
* doc/Protocol-A.texi (Server Information): Document
Static-Server-Info.
(get-boottime-info): New request.
Measure the number of existing conferences and persons.
* src/server/testsuite/lyskomd.0/03.exp,
src/server/testsuite/lyskomd.0/01.exp: Test STAT_CONFS and
STAT_PERSONS.
* src/server/stats.h (enum stat_type): Added STAT_CONFS and
STAT_PERSONS.
* src/server/stats.c (name): Handle STAT_CONFS and STAT_PERSONS.
* src/server/simple-cache.c (init_cache): Update STAT_CONFS and
STAT_PERSONS.
* src/server/person.c (do_delete_pers): Update STAT_PERSONS.
(create_person_generic): Update STAT_PERSONS and STAT_CONFS.
* src/server/conference.c (do_delete_conf): Update STAT_CONFS.
(do_create_conf): Ditto.
* doc/Protocol-A.texi (Measured Properties): Added "confs" and
"persons".
2003-08-11 Per Cederqvist <ceder@ceder.dyndns.org>
Testsuite fixes.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment