mirror of
https://github.com/ldmud/ldmud
synced 2026-08-12 14:26:05 -04:00
16 lines
434 B
C
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
|