Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2178)

Unified Diff: Tools/Scripts/compare-timing-files

Issue 20652002: Fix trailing whitespace in scripts and misc. files (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Don't change literal diff. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Tools/Scripts/clean-header-guards ('k') | Tools/Scripts/configure-github-as-upstream » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/Scripts/compare-timing-files
diff --git a/Tools/Scripts/compare-timing-files b/Tools/Scripts/compare-timing-files
index 11b470b372a4adb4328b436776914eef019d9dd2..89f70b1a94e7da1a72f8dec392696ef2e164af1e 100755
--- a/Tools/Scripts/compare-timing-files
+++ b/Tools/Scripts/compare-timing-files
@@ -68,7 +68,7 @@ print "\n";
sub parseResults
{
my ($file) = @_;
-
+
open(FILE, $file) or die "Couldn't open file: $file";
my @results = <FILE>;
close(FILE);
@@ -77,7 +77,7 @@ sub parseResults
my $total = 0;
for (my $i = 0; $i < $count; $i++) {
$results[$i] =~ s/\D*//; # cut out non-digits
- $total += $results[$i];
+ $total += $results[$i];
}
my $average = $total / $count;
my $range = $results[$count - 1] - $results[0];
« no previous file with comments | « Tools/Scripts/clean-header-guards ('k') | Tools/Scripts/configure-github-as-upstream » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698