From: František Dvořák Date: Sun, 18 Jan 2015 12:15:01 +0000 (+0100) Subject: Support also different version of Hadoop (=Fedora). X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=a97463f6c90434039bcd550ae2c103993c376561;p=meta-site_hadoop.git Support also different version of Hadoop (=Fedora). --- diff --git a/files/accounting/quota.awk b/files/accounting/quota.awk index b3b0a44..8aa92da 100644 --- a/files/accounting/quota.awk +++ b/files/accounting/quota.awk @@ -19,8 +19,13 @@ BEGIN { print "INSERT INTO measure (name) VALUES ('quota');"; } -{ +/^[0-9]+[ ]+[0-9]+[ ]+\/.*/ { used=$1 user=$4 print "INSERT INTO quota (id_measure, user, used) VALUES (last_insert_id(), " dbstr(user) ", " dbi(used) ");" } +/^[0-9]+[ ]+\/.*/ { + used=$1 + user=$3 + print "INSERT INTO quota (id_measure, user, used) VALUES (last_insert_id(), " dbstr(user) ", " dbi(used) ");" +}