Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#1136 closed Bug (fixed)

Wrong Memory value

Reported by: blade106 Owned by:
Priority: normal Milestone: Piwik 0.5.5
Component: Core Keywords: memory
Cc: Sensitive: no


In the 2nd page of installation, I can read:
Limite mémoire 5242880M
(memory limit)

My php.ini is as follow:
memory_limit = 52428800

It's another way to fill the data, by specifing bytes only. So the formula isn't working here.

Page was: /piwik/index.php?action=systemCheck

Change History (3)

comment:1 Changed 4 years ago by vipsoft (robocoder)

  • Resolution set to fixed
  • Status changed from new to closed

(In [1820]) fixes #1136 - get memory limit expects setting in megabytes

comment:2 Changed 4 years ago by blade106

if(substr($memory, -1) == 'K') <====== shouldn't it be «k» not «K»? Or the use of strtolower() on the value? Perhaps a switch() statement would be better here (even if performance on this script isn't really an issue).

Thanks for fixing the bug.

Note: See TracTickets for help on using tickets.