On Sat, 30 May 1998, Jesper Andersen wrote:
>Has anybody tried to "clock" how much bandwidth a mud uses in average. Less
>than 10mb per day when average 50 people on? Just wondering how much it will
>take to make a mud run.
To comm.c:
int no_specials = 0; /* Suppress ass. of special routines */
+ int total_bytes_written = 0; /* total network traffic */
int max_players = 0; /* max descriptors available */
In write_to_descriptor():
} while (total > 0);
+ total_bytes_written += bytes_written;
return 0;
}
Then add some code to act.wizard.c: do_show() to display it.
This won't account for bytes written if the socket encounters a network
error (although it would if you added the same line above the 'return -1').
Further statistical information is left up to you.
--
George Greer, greerga@circlemud.org | Genius may have its limitations, but
http://patches.van.ml.org/ | stupidity is not thus handicapped.
http://www.van.ml.org/CircleMUD/ | -- Elbert Hubbard
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST