[Swift-commit] r4604 - trunk/libexec/log-processing

wozniak at ci.uchicago.edu wozniak at ci.uchicago.edu
Mon Jun 13 14:46:11 CDT 2011


Author: wozniak
Date: 2011-06-13 14:46:10 -0500 (Mon, 13 Jun 2011)
New Revision: 4604

Modified:
   trunk/libexec/log-processing/buckets.pl
Log:
Better variable name


Modified: trunk/libexec/log-processing/buckets.pl
===================================================================
--- trunk/libexec/log-processing/buckets.pl	2011-06-13 19:45:43 UTC (rev 4603)
+++ trunk/libexec/log-processing/buckets.pl	2011-06-13 19:46:10 UTC (rev 4604)
@@ -28,7 +28,7 @@
 
 open FILE, "<", $file or die "could not open: $file\n";
 
-my %b = ();
+my %bucket = ();
 while (<FILE>)
 {
   # Round up to nearest bucket
@@ -36,18 +36,18 @@
   while (($v % $width) != 0) {
     $v++;
   }
-  if (exists $b{$v}) {
-    $b{$v} = $b{$v} + 1;
+  if (exists $bucket{$v}) {
+    $bucket{$v} = $bucket{$v} + 1;
   }
   else {
-    $b{$v} = 1;
+    $bucket{$v} = 1;
   }
 }
 
- at s = sort { $a <=> $b } keys %b;
+ at s = sort { $a <=> $b } keys %bucket;
 
 for (@s) {
-  print "$_ $b{$_}\n";
+  print "$_ $bucket{$_}\n";
 }
 
 print "\n";




More information about the Swift-commit mailing list