ldmud/mudlib/deprecated/query_load_average.c
Alexander Motzkau 8548489abe Removed the efun query_load_average
Removed the efun query_load_average() in favor of the new
driver_info(). (Issue #596)
2016-01-25 23:41:23 +01:00

16 lines
434 B
C

/* This sefun is to provide a replacement for the efun query_load_average().
* Feel free to add it to your mudlibs, if you have much code relying on that.
*/
#if ! __EFUN_DEFINED__(query_load_average)
#include <driver_info.h>
string query_load_average()
{
return efun::sprintf("%.2f cmds/s, %.2f comp lines/s",
efun::driver_info(DI_LOAD_AVERAGE_COMMANDS),
efun::driver_info(DI_LOAD_AVERAGE_LINES));
}
#endif