Add nornsctl_status function
The new nornctl_status function queries the urd daemon and returns summarized stats about all iotasks currently in the system. More specifically, the function returns a nornsctl_stat_t structure that contains the following information: st_running_tasks: Number of tasks currently running st_pending_tasks: Number of tasks currently pending st_eta: Estimated Time of Arrival of the currently running tasks (in seconds). Note that, internally, the daemon estimates how long a task will take by keeping track of the average namespace-to-namespace bandwidth from previous requests. This means that this field may contain NaN if no tasks have yet completed, since the daemon will not be able to estimate the E.T.A.
Please register or sign in to comment