scripts icon indicating copy to clipboard operation
scripts copied to clipboard

sysinfo.pl: unitialized values and division by 0

Open clorteau opened this issue 3 months ago • 0 comments

Script / WeeChat

  • Name of script: sysinfo.pl
  • Script version: 1.2.1
  • WeeChat version: 4.7.1

This bug has been reported to the script author? Yes

Bug summary

Each time it runs these errors occur:

08:46:09" perl: warning: Use of uninitialized value $vard in subtraction (-) at /home/northernlights/.local/share/weechat/perl/sysinfo.pl line 847.
08:46:09" perl: warning: Use of uninitialized value $vara in subtraction (-) at /home/northernlights/.local/share/weechat/perl/sysinfo.pl line 847.
08:46:09" perl: warning: Use of uninitialized value $varb in subtraction (-) at /home/northernlights/.local/share/weechat/perl/sysinfo.pl line 847.
08:46:09" perl: warning: Use of uninitialized value $varc in subtraction (-) at /home/northernlights/.local/share/weechat/perl/sysinfo.pl line 847.
08:46:09" perl: warning: Use of uninitialized value $vara in subtraction (-) at /home/northernlights/.local/share/weechat/perl/sysinfo.pl line 871.
08:46:09" perl: error: Illegal division by zero at /home/northernlights/.local/share/weechat/perl/sysinfo.pl line 871.
08:46:09" =!= perl: error: Illegal division by zero at /home/northernlights/.local/share/weechat/perl/sysinfo.pl line 871.
08:46:09" =!= perl: error in function "cmd_sysinfo"

Steps to reproduce

1.  Install script 2.  Type /sysinfo 3.  Check the core buffer for the errors

Current behavior

Errors

Expected behavior

No errors :)

clorteau avatar Sep 25 '25 16:09 clorteau