forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


How to calculate used space?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
filip
Valued Contributor
Valued Contributor


Joined: 07 Aug 2004
Posts: 338

PostPosted: Thu Apr 27, 2017 12:59 pm    Post subject: How to calculate used space? Reply with quote

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
View user's profile Send private message Send e-mail
GregLand
Contributor
Contributor


Joined: 15 Jun 2004
Posts: 149
Location: FRANCE

PostPosted: Thu Apr 27, 2017 3:19 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
filip
Valued Contributor
Valued Contributor


Joined: 07 Aug 2004
Posts: 338

PostPosted: Thu Apr 27, 2017 3:59 pm    Post subject: Reply with quote

I was looking, i must be out of VDS a little bit that's for sure. Embarassed

Thanks.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
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




Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group