Fix set_device_usage function in splunk plugin