Skip to content
Snippets Groups Projects
Commit ee18f955 authored by Ling Wu's avatar Ling Wu
Browse files
parents db52a5cc 092ef7a3
No related branches found
No related tags found
1 merge request!309Master
......@@ -310,8 +310,16 @@ void Tree::createRandomTreeSameDepthForNodes(int nbLeaves, int numChildMax, int
}
}
else
{
if (numChilds+remaining < 4)
{
outPut.push_back(numChilds+remaining);
}
else
{
outPut.push_back(2);
outPut.push_back(numChilds+remaining-2);
}
iter += numChilds+remaining;
}
};
......
connect acpc with cable AND usb cable to station
sudo apt-get install apcupsd
possibly change vi /etc/apcupsd/apcupsd.conf
UPSNAME smartupsC1500
UPSCABLE usb
UPSTYPE usb
DEVICE
POLLTIME 60
BATTERYLEVEL 10
MINUTES 10
TIMEOUT 0
sudo vi /etc/default/apcupsd
ISCONFIGURED=yes
sudo systemctl restart apcupsd
check
apcaccess status
to test it
sudo systemctl stop apcupsd
sudo apctest
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment