[Exim] WishList #91 patch ($load_average variable)

Góra strony
Delete this message
Reply to this message
Autor: Oliver Gorwits
Data:  
Dla: exim-users
Temat: [Exim] WishList #91 patch ($load_average variable)
exim-users,

below is a simple patch for exim-4.10/src/expand.c pending the
completion of WishList item #91, which releases a $load_average
expansion variable into config-space.

my C is nothing to write home about, so comments are more than
welcome :-)

regards,
oliver.

--
150a151
>   vtype_load_avg,       /* value not used; result is int from os_getloadavg */

180a182
>   { "load_average",        vtype_load_avg,    NULL },

733a736,739
>     case vtype_load_avg:
>     sprintf(CS var_buffer, "%d", os_getloadavg()); /* load_average */
>     return var_buffer;

>



--
Oliver Gorwits <oliver.gorwits@???>
Network Software Group
Oxford University Computing Services