FileAnalysis: fix file type canonification for file_analysis.log

This commit is contained in:
Jon Siwek 2013-04-03 09:58:35 -05:00
parent 393d35dc60
commit e73a261262

View file

@ -8,9 +8,9 @@ BEGIN { FS="\t"; OFS="\t"; type_col = -1; desc_col = -1 }
/^#fields/ {
for ( i = 2; i < NF; ++i )
{
if ( $i == "mime_type" || $i == "file_type" )
if ( $i == "mime_type" )
type_col = i-1;
if ( $i == "mime_desc" )
if ( $i == "mime_desc" || $i == "file_type" )
desc_col = i-1;
}
}