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

Top Page
Delete this message
Reply to this message
Author: Oliver Gorwits
Date:  
To: exim-users
Subject: [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