[prev in list] [next in list] [prev in thread] [next in thread] 

List:       backhand-devel
Subject:    Re: [mod_backhand-devel] quick patch for mac os x
From:       Theo Schlossnagle <jesus () omniti ! com>
Date:       2002-02-10 17:54:59
[Download RAW message or body]

Thanks... applied.

On Sunday, February 10, 2002, at 10:39  AM, marquis logan wrote:

> "temp" was unused
> the loop updates the load statistics correctly.
>
> nibs
>
> --- /mod_backhand/platform.c  Sun Feb 10 01:58:23 2002
> ***************
> *** 451,457 ****
>      register float                     ourcpu = 0.0;
>      vm_statistics_data_t                       vminfo;
>      host_load_info_data_t              loadinfo;
> -    register host_cpu_load_info_t      temp;
>      count = HOST_VM_INFO_COUNT;
>      kr = host_statistics(mach_host_self(), HOST_VM_INFO,
>                           (host_info_t)&vminfo, &count);
> --- 451,456 ----
> ***************
> *** 475,480 ****
> --- 474,481 ----
>     ourcpu = 1.0 - (((float)(newcpuinfo.cpu_ticks[CPU_STATE_IDLE] -
>                           oldcpuinfo.cpu_ticks[CPU_STATE_IDLE])) / 
> ourcpu);
>     ourcpu *= 1000.0;
> +   for(i = 0; i < CPU_STATE_MAX; i++)
> +      oldcpuinfo.cpu_ticks[i] = newcpuinfo.cpu_ticks[i];
>
>     ss->load = (double)loadinfo.avenrun[0];
>     ss->load_hwm = set_high_watermark() * 1000;
>
>
> _______________________________________________
> backhand-devel mailing list
> backhand-devel@lists.backhand.org
> http://lists.backhand.org/mailman/listinfo/backhand-devel
>
>
--
Theo Schlossnagle
1024D/82844984/95FD 30F1 489E 4613 F22E  491A 7E88 364C 8284 4984
2047R/33131B65/71 F7 95 64 49 76 5D BA  3D 90 B9 9F BE 27 24 E7


_______________________________________________
backhand-devel mailing list
backhand-devel@lists.backhand.org
http://lists.backhand.org/mailman/listinfo/backhand-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic