|
@@ -85,12 +85,12 @@ discard block |
|
|
block discarded – undo |
|
85
|
85
|
$config->get('influxdb-database') |
|
86
|
86
|
); |
|
87
|
87
|
|
|
88
|
|
- $lastDays = (int)$input->getOption('days') ? (int)$input->getOption('days') : 0; |
|
89
|
|
- $limit = (int)$input->getOption('limit') ? (int)$input->getOption('limit') : 0; |
|
|
88
|
+ $lastDays = (int) $input->getOption('days') ? (int) $input->getOption('days') : 0; |
|
|
89
|
+ $limit = (int) $input->getOption('limit') ? (int) $input->getOption('limit') : 0; |
|
90
|
90
|
|
|
91
|
91
|
$torrentList = $client->getTorrentData(); |
|
92
|
92
|
|
|
93
|
|
- $torrentList = array_map(function ($torrent) { |
|
|
93
|
+ $torrentList = array_map(function($torrent) { |
|
94
|
94
|
$torrent['age'] = TorrentUtils::getTorrentAgeInDays($torrent); |
|
95
|
95
|
return $torrent; |
|
96
|
96
|
}, $torrentList); |
|
@@ -102,7 +102,7 @@ discard block |
|
|
block discarded – undo |
|
102
|
102
|
|
|
103
|
103
|
$transmissionHost = $config->get('transmission-host'); |
|
104
|
104
|
|
|
105
|
|
- $torrentList = array_map(function ($torrent) use ($influxDbClient, $transmissionHost, $lastDays) { |
|
|
105
|
+ $torrentList = array_map(function($torrent) use ($influxDbClient, $transmissionHost, $lastDays) { |
|
106
|
106
|
$torrent['uploaded'] = $influxDbClient->getTorrentSum( |
|
107
|
107
|
$torrent, |
|
108
|
108
|
'uploaded_last', |
Please login to merge, or discard this patch.