scripts
scripts copied to clipboard
sysinfo.pl: unitialized values and division by 0
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 :)