Displaying 3 results from an estimated 3 matches for "flag_isset".
2007 Sep 14
1
Bug#441342: Nut can kill power to UPSs that never went on battery
...ed to force a shutdown of all the other UPSs.
>
> The smoking gun is in upsmon's forceshutdown():
>
> /* set FSD on any "master" UPS entries (forced shutdown in progress) */
> for (ups = firstups; ups != NULL; ups = ups->next)
> if (flag_isset(ups->status, ST_MASTER)) {
> isamaster = 1;
> setfsd(ups);
> }
>
> This code does not attempt to determine whether the UPS in question needs to
> be shut down or not. Shutting down a UPS that is online with a full...
2007 May 13
0
No subject
...them is low on battery.
>> The smoking gun is in upsmon's forceshutdown():
>>
>> /* set FSD on any "master" UPS entries (forced shutdown in
progress) */
>> for (ups =3D firstups; ups !=3D NULL; ups =3D ups->next)
>> if (flag_isset(ups->status, ST_MASTER)) {
>> isamaster =3D 1;
>> setfsd(ups);
>> }
>>
>> This code does not attempt to determine whether the UPS in question
>> needs to be shut down or not. Shutting down a UPS t...
2007 Jan 04
2
Re: [nut-Patches][303751] Checking UPS Temperature
...= 3;
> + }
> +//EW <<<<<<
> +
> if (numq == 0) {
> upslogx(LOG_ERR, "get_var: programming error: var=%s", var);
> @@ -770,4 +782,21 @@
> }
>
> +//EW >>>>>>
> +static void ups_overtemp(utype *ups)
> +{
> + if (flag_isset(ups->status, ST_OVERTEMP)) { /* no change */
> + debug("ups_overtemp(%s) (no change)\n", ups->sys);
> + return;
> + }
> +
> + debug("ups_overtemp(%s) (first time)\n", ups->sys);
> +
> + /* must have changed from !OVERTEMP to OVERTEMP, so notify *...