search for: maxsdorder

Displaying 1 result from an estimated 1 matches for "maxsdorder".

Did you mean: maxdorder
2017 Jul 08
1
Trying to understand sdorder
...shutdowns would be 'misc', 'littleguy', and then 'bigone'. 3. But in upsdrvctl.c I see /* walk UPS table and send command to all UPSes according to sdorder */ static void send_all_drivers(void (*command)(const ups_t *)) { ups_t *ups; int i; ... for (i = 0; i <= maxsdorder; i++) { ups = upstable; while (ups) { if (ups->sdorder == i) command(ups); ups = ups->next; } } } These nested loops will execute in a few milleseconds, effectively shutting down all the UPS units at the same time rather than in a paced sequence. I see nothing that...