mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-11 05:33:37 +00:00
Fix for config page issues.
This commit is contained in:
parent
a1da7df12e
commit
ecad67be06
1 changed files with 11 additions and 13 deletions
|
@ -1,5 +1,4 @@
|
|||
#import sickbeard
|
||||
#import psutil
|
||||
#from sickbeard import db
|
||||
#import os.path
|
||||
#set global $title="Configuration"
|
||||
|
@ -15,17 +14,17 @@
|
|||
<h1 class="title">$title</h1>
|
||||
#end if
|
||||
|
||||
#set cpu_usage = $psutil.cpu_percent()
|
||||
#set ram = $psutil.phymem_usage()
|
||||
#set ram_total = $ram.total / 2**20
|
||||
#set ram_used = $ram.used / 2**20
|
||||
#set ram_free = $ram.free / 2**20
|
||||
#set ram_percent_used = $ram.percent
|
||||
#set disk = $psutil.disk_usage('/')
|
||||
#set disk_total = $disk.total / 2**30
|
||||
#set disk_used = $disk.used / 2**30
|
||||
#set disk_free = $disk.free / 2**30
|
||||
#set disk_percent_used = $disk.percent
|
||||
##set cpu_usage = $psutil.cpu_percent()
|
||||
##set ram = $psutil.phymem_usage()
|
||||
##set ram_total = $ram.total / 2**20
|
||||
##set ram_used = $ram.used / 2**20
|
||||
##set ram_free = $ram.free / 2**20
|
||||
##set ram_percent_used = $ram.percent
|
||||
##set disk = $psutil.disk_usage('/')
|
||||
##set disk_total = $disk.total / 2**30
|
||||
##set disk_used = $disk.used / 2**30
|
||||
##set disk_free = $disk.free / 2**30
|
||||
##set disk_percent_used = $disk.percent
|
||||
|
||||
<div id="summary" class="align-left">
|
||||
<table class="infoTable" cellspacing="1" border="0" cellpadding="0">
|
||||
|
@ -37,7 +36,6 @@
|
|||
#end if
|
||||
<font color="red">You are using BETA software</font>
|
||||
</td></tr>
|
||||
<tr><td class="infoTableHeader">Memory Used: </td><td class="infoTableCell">$ram_percent_used</td></tr>
|
||||
<tr><td class="infoTableHeader">SR Config file: </td><td class="infoTableCell">$sickbeard.CONFIG_FILE</td></tr>
|
||||
<tr><td class="infoTableHeader">SR Database file: </td><td class="infoTableCell">$db.dbFilename()</td></tr>
|
||||
<tr><td class="infoTableHeader">SR Cache Dir: </td><td class="infoTableCell">$sickbeard.CACHE_DIR</td></tr>
|
||||
|
|
Loading…
Reference in a new issue