Skip to content

sysinfo.pl: unitialized values and division by 0 #581

@clorteau

Description

@clorteau

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUnexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions