|
|
- $nodeTrafficHourly = SsNodeTrafficHourly::query()->with(['info'])->where('node_id', $node->id)->where('created_at', '>=', date('Y-m-d H:i:s', strtotime("-24 hours")))->where('created_at', '<=', date('Y-m-d H:i:s', strtotime("-1 hour")))->get();
|
|
|
|
|
$hourlyData[] = round($hourly->total / (1024 * 1024), 2);
|
|
$hourlyData[] = round($hourly->total / (1024 * 1024), 2);
|