File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -179,6 +179,8 @@ https://github.com/networkupstools/nut/milestone/12
179179 server. [issue #3003, PR #3110]
180180 * Tickle service watchdog timer (if any) so the `nut-monitor.service` or
181181 equivalent unit is not killed off due to quietness during shutdown. [#3003]
182+
183+ - `upsset` now recognize RANGE NUMBER and NUMBER types.
182184+
183185NOTE: If using `upssched` and monitoring multiple UPSes, consider setting up
184186a `START-TIMER-SHARED` rule with a short (approx. 1 second) timeout to group
Original file line number Diff line number Diff line change @@ -770,6 +770,19 @@ static void do_type(const char *varname)
770770 return ;
771771 }
772772
773+ if (!strcasecmp (answer [i ], "NUMBER" )) {
774+ /* 20 is a reasonable default size for the text box */
775+ do_string (varname , 20 );
776+ return ;
777+ }
778+
779+ /* RANGE is usually paired with NUMBER.
780+ We can ignore 'RANGE' and let the 'NUMBER'
781+ case (which should come next) handle it. */
782+ if (!strcasecmp (answer [i ], "RANGE" )) {
783+ continue ;
784+ }
785+
773786 /* ignore this one */
774787 if (!strcasecmp (answer [i ], "RW" ))
775788 continue ;
You can’t perform that action at this time.
0 commit comments