I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Unverified Commit 3d45e174 authored by xalloc xzal's avatar xalloc xzal
Browse files

I'm retarded

parent fdd5a980
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,11 @@
# You should have received a copy of the GNU General Public License
# along with lainsafe. If not, see <https://www.gnu.org/licenses/>.
$disk_size = `df -h | awk 'NR==2 {print \$2; exit}'`;
$disk_usage = `df -h | awk 'NR==2 {print \$3; exit}')`;
$disk_free = `df -h | awk 'NR==2 {print \$4; exit}'`;
$disk_percentage = `df -h | awk 'NR==2 {print \$5; exit}'`;
my $currently_used = `du -h files`;
$currently_used =~ s/files//;
my $total = "32GB"; # Put here what you use.
......@@ -38,4 +43,4 @@ print "<!DOCTYPE html>
</body>
</html>";
print "$currently_used available from $total";
print $disk_free ." available from ". $disk_size ." total";
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment