Skip to content

Commit

Permalink
fix config name reference
Browse files Browse the repository at this point in the history
  • Loading branch information
danilopolani committed Dec 18, 2021
1 parent b6eaa26 commit 337cfb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/MemoryTracker.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class MemoryTracker
*/
public function __construct(string $trackerName = 'default', int $historyMaxSize = 100, bool $realUsage = false)
{
$this->cache = Cache::store(Config::get('filament-worker-memory-tracker.cache_store'));
$this->cache = Cache::store(Config::get('filament-memory-tracker.cache_store'));
$this->memoryTrackerKey = 'memory_tracker:' . Str::slug($trackerName);
$this->memoryTrackerPeakKey = 'memory_tracker_peak:' . Str::slug($trackerName);
$this->memoryTrackerRestartKey = 'memory_tracker_restart:' . Str::slug($trackerName);
Expand Down Expand Up @@ -132,7 +132,7 @@ public function getPeak(): ?array

return [
'date' => (new Carbon($peak['date']))->format(
Config::get('filament-worker-memory-tracker.date_format', 'j F Y @ H:i:s')
Config::get('filament-memory-tracker.date_format', 'j F Y @ H:i:s')
),
'value' => number_format($peak['value'] / 1024 / 1024, 3),
];
Expand All @@ -151,7 +151,7 @@ public function getLatestRestart(): ?array

return [
'date' => (new Carbon($latestRestart['date']))->format(
Config::get('filament-worker-memory-tracker.date_format', 'j F Y @ H:i:s')
Config::get('filament-memory-tracker.date_format', 'j F Y @ H:i:s')
),
'value' => number_format($latestRestart['value'] / 1024 / 1024, 3),
];
Expand Down

0 comments on commit 337cfb4

Please sign in to comment.