Closed-loop nights significantly reduced time spent in hypoglycemia ( P = @ ) and increased the percentage of time spent in the target range of @-@ mg/dL ( P = @ ) compared with nights when the SAP therapy was used .