blob: 3b36f0e41b0446548ff61a8fab60b66d2ef0ab82 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001/* This sefun is to provide a replacement for the efun query_load_average().
2 * Feel free to add it to your mudlibs, if you have much code relying on that.
3 */
4
5#if ! __EFUN_DEFINED__(query_load_average)
6
7#include <driver_info.h>
8
9string query_load_average()
10{
11 return efun::sprintf("%.2f cmds/s, %.2f comp lines/s",
12 efun::driver_info(DI_LOAD_AVERAGE_COMMANDS),
13 efun::driver_info(DI_LOAD_AVERAGE_LINES));
14}
15
16#endif