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

How would I find the % used?

$used = 100 - round($memmath2);

<3 you Pritaeas. Saving my day. AGAIN

Be a part of the DaniWeb community

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