about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--dosfetch.pas4
1 files changed, 2 insertions, 2 deletions
diff --git a/dosfetch.pas b/dosfetch.pas
index 979924d..bad3de3 100644
--- a/dosfetch.pas
+++ b/dosfetch.pas
@@ -84,8 +84,8 @@ begin
    end;
    free := longint(a)*longint(c)*longint(b);
    total := longint(a)*longint(c)*longint(d);
-   write(free div 1024, '/', total div 1024, ' KB (');
-   writeln(round(100-(free/total)*100), '% free)');
+   write(total div 1024 - free div 1024, '/', total div 1024, ' KB (');
+   writeln(round((free/total)*100), '% free)');
 end;
 
 procedure dosver;