Trammell Hudson avatar Trammell Hudson committed 54f6061 Draft

add id to csv output

Comments (0)

Files changed (1)

 } else {
 	open $out, ">$csv_out_file"
 		or die "$csv_out_file: Unable to write: $!\n";
-	print $out "last,first,time\n";
+	print $out "last,first,id,time\n";
 }
 
 # Force writes to the CSV immediately
 	}
 
 	# Try for a 16 bit ID
+	my $id = $_;
 	my $id16 = 0;
-	for my $bit (split //, substr($_, -17, 16))
+	for my $bit (split //, substr($id, -17, 16))
 	{
 		$id16 = ($id16 << 1) | $bit;
 	}
 	printf "%d: %s\n", $count, $user->[1];
 
 	my $now = localtime;
-	print $out "$user->[0],$user->[1],$now\n";
+	print $out "$user->[0],$user->[1],$id,$now\n";
 }
 
 __END__
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.