Skip to content

Commit b9c8085

Browse files
authored
Dont collect data for short running cli jobs (#5)
refs CLX6-829
1 parent e65c0df commit b9c8085

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sysmonitor/SystemMonitor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function collectStats(RequestStatsEvent $evt)
5151
// we won't even collect data for requests which don't hit either of these min-values, to prevent unnecessary garbage.
5252
$minQueries = 130;
5353
$minMemory = 80;
54-
$minTime = 3;
54+
$minTime = php_sapi_name() == 'cli' ? 10 : 3;
5555

5656
if ($evt->usedQueries < $minQueries && $evt->peakMemory < $minMemory && $evt->requestTime < $minTime) {
5757
return;

0 commit comments

Comments
 (0)