Branch: Tag:

1999-11-23

1999-11-23 06:38:49 by Per Hedbor <ph@opera.com>

config->sent, config->hset and config->received is not normal integers instead of odd bignum class (since integers are bignums)

Rev: server/base_server/configuration.pike:1.226
Rev: server/base_server/roxen.pike:1.355

1:   /* -  * $Id: roxen.pike,v 1.354 1999/11/19 22:44:08 per Exp $ +  * $Id: roxen.pike,v 1.355 1999/11/23 06:38:49 per Exp $    *    * The Roxen Challenger main program.    *
7:    */      // ABS and suicide systems contributed freely by Francesco Chemolli - constant cvs_version="$Id: roxen.pike,v 1.354 1999/11/19 22:44:08 per Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.355 1999/11/23 06:38:49 per Exp $";      object backend_thread;   object argcache;
1403:    ||!conf->received    ||!conf->hsent)    continue; -  foo[0] += conf->sent->mb()/(float)(time(1)-start_time+1); -  foo[1] += conf->sent->mb(); -  foo[2] += conf->hsent->mb(); -  foo[3] += conf->received->mb(); +  foo[0] += conf->sent/(1024.0*1024.0)/(float)(time(1)-start_time+1); +  foo[1] += conf->sent/(1024.0*1024.0); +  foo[2] += conf->hsent/(1024.0*1024.0); +  foo[3] += conf->received/(1024.0*1024.0);    foo[4] += conf->requests;    }