Skip to content

Commit

Permalink
Adding a few settings to webui, cleanup of unneeded func
Browse files Browse the repository at this point in the history
  • Loading branch information
deranjer committed May 27, 2018
1 parent d15bb97 commit cbfcba4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
6 changes: 0 additions & 6 deletions engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,6 @@ func readTorrentFileFromDB(element *Storage.TorrentLocal, tclient *torrent.Clien
return singleTorrent, nil
}

//StartTorrents attempts to start torrents by adding them to the active torrents, then the queue, and by increasing their connections (if they were stopped)
func StartTorrents(clientTorrent *torrent.Client, torrentHashes []string, torrentQueues Storage.TorrentQueues) {

}

//AddTorrent creates the storage.db entry and starts A NEW TORRENT and adds to the running torrent array
func AddTorrent(clientTorrent *torrent.Torrent, torrentLocalStorage Storage.TorrentLocal, db *storm.DB, torrentType, torrentFilePathAbs, torrentStoragePath, labelValue string, config Settings.FullClientSettings) {
timedOut := timeOutInfo(clientTorrent, 45) //seeing if adding the torrent times out (giving 45 seconds)
Expand Down Expand Up @@ -233,7 +228,6 @@ func CreateInitialTorrentArray(tclient *torrent.Client, TorrentLocalArray []*Sto
AddTorrentToQueue(singleTorrentFromStorage, singleTorrent, db)
}
} else { //If we already have a queue set up then assign torrents to queue
Logger.Info("Existing Queue found in database, reading it in")
if singleTorrentFromStorage.TorrentStatus == "Queued" {
AddTorrentToQueue(singleTorrentFromStorage, singleTorrent, db)
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class ClientSettingsTab extends React.PureComponent {
<Paper className={classes.paper}>HTTP Port: <span className={classes.floatRight}>{this.props.settingsFile["HTTPAddr"]} </span> </Paper>
<Paper className={classes.paper}>Use Proxy: <span className={classes.floatRight}>{String(this.props.settingsFile["UseProxy"])} </span> </Paper>
<Paper className={classes.paper}>Base URL: <span className={classes.floatRight}>{this.props.settingsFile["BaseURL"]} </span> </Paper>
<Paper className={classes.paper}>Max Active Torrents: <span className={classes.floatRight}>{this.props.settingsFile["MaxActiveTorrents"]} </span> </Paper>


</Grid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class LoggingSettingsTab extends React.Component {
<Grid container spacing={8}>
<Grid item xs={12} sm={4}>
<Paper className={classes.paper}>Logging Output: <span className={classes.floatRight}>{this.props.settingsFile["LoggingOutput"]} </span></Paper>
<Paper className={classes.paper}>Logging Level: <span className={classes.floatRight}>{logLevel} </span> </Paper>
<Paper className={classes.paper}>Logging Level: <span className={classes.floatRight}>{this.props.settingsFile["LoggingLevel"]} </span> </Paper>


</Grid>
Expand Down
14 changes: 13 additions & 1 deletion public/static/js/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -109784,6 +109784,18 @@ var ClientSettingsTab = function (_React$PureComponent) {
' '
),
' '
),
_react2.default.createElement(
_Paper2.default,
{ className: classes.paper },
'Max Active Torrents: ',
_react2.default.createElement(
'span',
{ className: classes.floatRight },
this.props.settingsFile["MaxActiveTorrents"],
' '
),
' '
)
),
_react2.default.createElement(
Expand Down Expand Up @@ -109955,7 +109967,7 @@ var LoggingSettingsTab = function (_React$Component) {
_react2.default.createElement(
'span',
{ className: classes.floatRight },
logLevel,
this.props.settingsFile["LoggingLevel"],
' '
),
' '
Expand Down

0 comments on commit cbfcba4

Please sign in to comment.