You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
the begginning
This commit is contained in:
32
writeengine/bulk/plot_buffer.awk
Normal file
32
writeengine/bulk/plot_buffer.awk
Normal file
@ -0,0 +1,32 @@
|
||||
/BufferStatus/ {
|
||||
pix = $2/96;
|
||||
# print pix;
|
||||
str = "";
|
||||
if($3 < $4) {
|
||||
for(i=0; i < $2; i= i + pix) {
|
||||
# print i, $2, $3, $4;
|
||||
# printf("/");
|
||||
if(i < $3) {
|
||||
str = str "*";
|
||||
} else if (i >= $3 && i < $4) {
|
||||
str = str "-";
|
||||
} else if (i >= $4) {
|
||||
str = str "*";
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
for(i=0; i < $2; i = i + pix) {
|
||||
# print i, $2, $3, $4;
|
||||
# printf("\\");
|
||||
if(i < $4) {
|
||||
str = str "-";
|
||||
} else if (i >= $4 && i < $3) {
|
||||
str = str "*";
|
||||
} else if (i >= $3) {
|
||||
str = str "-";
|
||||
}
|
||||
}
|
||||
}
|
||||
printf("|%s| - %d\n", str, $2);
|
||||
}
|
Reference in New Issue
Block a user