Error when clearing cache on installing meter in Mac OS
pbvignesh opened this issue · 1 comments
- Laravel Version - 5.6.39
- PHP Version - 7.2.25
- OS - MacOS Mojave Version 10.14.3
Description
After installing meter on Mac and publishing, when you try running CLI commands such as php artisan migrate:status, php artisan cache:clear etc, it throws the following error
The issue happens in MemoryMonitor.php where we try to run the free command. However I don't think Mac OS Supports the free command and as a result it returns an empty value. Either we need to provide support for Mac or add error handling
@sarfraznawaz2005 Can you let me know what is the purpose of the MemoryMonitor class so that I can add a patch and submit a pull request for this ? Does it just get the percent of memory free / used etc
Hi,
Can you please try updating the package as I just made few fixes and pushed.
The Memory monitor actually sees server RAM usage. This is of course supposed to run on linux but if you still receive any error after updating, I will put OS check there then.