summaryrefslogtreecommitdiff
path: root/systemunit.pas
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2015-12-10 15:23:29 +0100
committerErich Eckner <git@eckner.net>2015-12-10 16:40:35 +0100
commit5a30fe007e3e3e3beccefc377ed7fb5c1aaed4dd (patch)
tree0027ead6e7462f654fc9c97777b9c5d3c166c206 /systemunit.pas
parent108e58400e41f0b0c58fead12ad9c581e02a7217 (diff)
downloadunits-5a30fe007e3e3e3beccefc377ed7fb5c1aaed4dd.tar.xz
belegterSpeicher in systemunit.pas geringfügig beschleunigt
Diffstat (limited to 'systemunit.pas')
-rw-r--r--systemunit.pas8
1 files changed, 2 insertions, 6 deletions
diff --git a/systemunit.pas b/systemunit.pas
index 281df6c..de0e699 100644
--- a/systemunit.pas
+++ b/systemunit.pas
@@ -89,12 +89,8 @@ begin
reset(f);
while not eof(f) do begin
readln(f,s);
- if (leftStr(s,4)='Rss:') and (rightStr(s,3)=' kB') then begin
- delete(s,1,4);
- delete(s,length(s)-2,3);
- s:=trim(s);
- result:=result+strtoint(s);
- end;
+ if (leftStr(s,4)='Rss:') and (rightStr(s,3)=' kB') then
+ result:=result+strtoint(trim(copy(s,5,length(s)-4-3)));
end;
closefile(f);
end;