Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ensembl-gh-mirror
ensembl
Commits
72fcd640
Commit
72fcd640
authored
Feb 23, 2010
by
Albert Vilella
Browse files
added total size at the end of main table
parent
8fe0a088
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
misc-scripts/db-space.pl
misc-scripts/db-space.pl
+6
-0
No files found.
misc-scripts/db-space.pl
View file @
72fcd640
...
...
@@ -116,6 +116,12 @@ foreach my $db (sort {$total_size{$b} <=> $total_size{$a}} keys %total_size) {
printf
("
%8.1f
\n
",
$total_size
{
$db
}
/ 1024 /
1024
);
}
my
$total_bytes
;
map
{
$total_bytes
+=
$_
}
values
%total_size
;
print
"
================================
\n
";
printf
("
TOTAL SPACE USED %7.1f
\n
",
$total_bytes
/ 1024 /
1024
);
print
"
================================
\n
";
my
$count
++
;
print
"
==================
\n
";
print
"
Top tables by size
\n
";
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment