Bah, I figured someone would give this guy a good method of checking, but it appears no one has yet :P In comm.c, write_to_descriptor() do { if ((bytes_written = write(desc, txt, total)) < 0) the code.... } else { txt += bytes_written; total -= bytes_written; } } while (total > 0); (above could be stock, I dont remember) and at the end of the same function total_bytes_written += bytes_written; total_bytes is of course declared as a global integer then in act.wizard.c, do_show() sprintf(buf, "%s %5dk total bytes sent across net\r\n", buf, total_bytes_written / 1024); Erik Madison ICQ #13940294 www.greyhawk.org fafhrd@greyhawk.org -----Original Message----- From: Rodrigo Barbosa <rpedroso@INATEL.BR> To: CIRCLE@post.queensu.ca <CIRCLE@post.queensu.ca> Date: Tuesday, February 09, 1999 7:07 PM Subject: Re: How much data does the mud send out per day...? >At 01:18 PM 02/08/1999 +0100, you wrote: >>Anybody knows of an easy way to calculate how many megs of data the mud >>sends out per day/hour etc? >> > >The best way to do that (*nix) is to set a virtual interface, and put the >mud running at this address. > >Then, just check with the netstat command ... > >[]s > >-- >Rodrigo Barbosa <rpedroso@inatel.br> >"Born to be wild !" > > > +------------------------------------------------------------+ > | Ensure that you have read the CircleMUD Mailing List FAQ: | > | http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | > +------------------------------------------------------------+ +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST