Hey guys,

just a quick one.

Got this:

$memmath = $memcache + $memfree;
$memmath2 = $memmath / $memtotal * 100;
$memory = round($memmath2) . '%';

Which finds the % free.

How would I find the % used? Been messing with algorithms and I'm screwed in the head now

Recommended Answers

How would I find the % used?

$used = 100 - round($memmath2);
Jump to Post

All 2 Replies

<3 you Pritaeas. Saving my day. AGAIN

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.