Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update testGetMemoryNoSwapinfo to hw.realmem
Signed-off-by: Matthew Wener <[email protected]>
  • Loading branch information
ConstrictM committed Oct 4, 2020
commit b2cf1b73e8b2263de25451b21cc63ab3a8c34e3e
2 changes: 1 addition & 1 deletion tests/lib/FreeBSDTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function testGetMemoryNoSwapinfo(): void {
if ($command === '/usr/sbin/swapinfo -k') {
throw new \RuntimeException('No output for command: /usr/sbin/swapinfo');
}
if ($command === '/sbin/sysctl -n hw.physmem hw.pagesize vm.stats.vm.v_inactive_count vm.stats.vm.v_cache_count vm.stats.vm.v_free_count') {
if ($command === '/sbin/sysctl -n hw.realmem hw.pagesize vm.stats.vm.v_inactive_count vm.stats.vm.v_cache_count vm.stats.vm.v_free_count') {
return file_get_contents(__DIR__ . '/../data/freebsd_meminfo');
}
});
Expand Down