git://scientific.zcu.cz
/
meta-site_hadoop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7aa51a5
)
Support also different version of Hadoop (=Fedora).
author
František Dvořák
<valtri@civ.zcu.cz>
Sun, 18 Jan 2015 12:15:01 +0000
(13:15 +0100)
committer
František Dvořák
<valtri@civ.zcu.cz>
Sun, 18 Jan 2015 12:15:01 +0000
(13:15 +0100)
files/accounting/quota.awk
patch
|
blob
|
blame
|
history
diff --git
a/files/accounting/quota.awk
b/files/accounting/quota.awk
index
b3b0a44
..
8aa92da
100644
(file)
--- 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) ");"
+}