bitly / data_hacks

Command line utilities for data analysis
http://github.com/bitly/data_hacks
1.94k stars 195 forks source link

Minor bug in sample #3

Closed mjschultz closed 14 years ago

mjschultz commented 14 years ago

Hi, I was using the sample script to reduce a 6.5 million line data trace (since histogram is very slow with that many lines) and tried 1% for the sample amount. It didn't work. Looked at the script and found that random.randint(1, 100) < sample_rate would never be true with the sample_rate == 1, so I fixed it.

And a typo.

Thanks for making these scripts!