Skip to content

ZeroDivisionError #2

Description

@SorenPeterson

I downloaded the file onto my server and ran ruby rawk1.2.rb < /home/rails/log/production.log but it is giving me a ZeroDivisionError

Here is the full message/stracktrace:

Printing report for total request times
--------
Request                                        Count     Sum     Max  Median     Avg     Min     Std
rawk/rawk1.2.rb:44:in `/': divided by 0 (ZeroDivisionError)
        from rawk/rawk1.2.rb:44:in `average'
        from rawk/rawk1.2.rb:62:in `to_s'
        from rawk/rawk1.2.rb:248:in `print_stats'
        from rawk/rawk1.2.rb:146:in `initialize'
        from rawk/rawk1.2.rb:275:in `new'
        from rawk/rawk1.2.rb:275:in `<main>'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions