View previous topic :: View next topic |
Author |
Message |
filip Valued Contributor
Joined: 07 Aug 2004 Posts: 340
|
Posted: Thu Apr 27, 2017 12:59 pm Post subject: How to calculate used space? |
|
|
I have this code for free and total space, but @volinfo don't have parameter for used space.
Code: | if @equal(@volinfo(c,t),FIXED)
list add,list2,C: @format(@fdiv(@volinfo(C,f),1048576),0.2) GB free space / @format(@fdiv(@volinfo(c,s),1048576),0.2) GB total space,,READONLY
end |
|
|
Back to top |
|
|
GregLand Valued Contributor
Joined: 15 Jun 2004 Posts: 212 Location: FRANCE
|
Posted: Thu Apr 27, 2017 3:19 pm Post subject: |
|
|
Hi !
You tried the difference ?
Code: |
%%free = @format(@fdiv(@volinfo(C,f),1048576),0.2)
%%total = @format(@fdiv(@volinfo(c,s),1048576),0.2)
%%used = @format(@fdiv(@diff(@volinfo(c,s),@volinfo(C,f)),1048576),0.2)
LIST add,list2,C:%%free GB free space
LIST add,list2,C:%%total GB total space
LIST add,list2,C:%%used GB used space |
|
|
Back to top |
|
|
filip Valued Contributor
Joined: 07 Aug 2004 Posts: 340
|
Posted: Thu Apr 27, 2017 3:59 pm Post subject: |
|
|
I was looking, i must be out of VDS a little bit that's for sure.
Thanks. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|