[Nut-upsuser] NUT command LOGIN is not a login

Manuel Wolfshant wolfy at nobugconsulting.ro
Sat Jun 26 08:43:46 BST 2021


On 6/26/21 10:26 AM, Roger Price wrote:
> On Fri, 25 Jun 2021, Mark Hansen wrote:
>
>> On 6/24/2021 5:48 AM, Roger Price wrote:
>>> Comment: had the command LOGIN been called SETACTIVE, with the 
>>> upsmon flag ST_LOGIN changed to ST_ACTIVE, and NUMLOGINS changed to 
>>> NUMACTIVE this mechanism would probably be easier to understand.  
>>> LOGOUT might be NOTACTIVE.
>>>
>>>     Current   Proposed
>>>     LOGIN     SETACTIVE
>>>     LOGOUT    NOTACTIVE
>>>     NUMLOGINS NUMACTIVE
>>>     ST_LOGIN  ST_ACTIVE
>
>> What about:
>>     Current    Proposed
>>     LOGIN      ATTACH
>>     LOGOUT     DETACH
>>     NUMLOGINS  NUMATTACHED
>>     ST_LOGIN   ST_ATTACHED
>
> Better.  ATTACH is simpler and clearer than SETACTIVE.  Roger

+1 !


More information about the Nut-upsuser mailing list