Skip to content

Commit

Permalink
Add: Write buffer raw to the System table (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnzbk committed Aug 21, 2024
1 parent f3db79a commit 97ed968
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion webui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,11 @@ <h4>System</h4>
<td id="SysInfo_TotalDiskSpace" width="50%"></td>
</tr>
<tr>
<td width="50%">Article Cache</td>
<td width="50%">Write buffer</td>
<td id="SysInfo_WriteBuffer" width="50%"></td>
</tr>
<tr>
<td width="50%">Article cache</td>
<td id="SysInfo_ArticleCache" width="50%"></td>
</tr>
<tr>
Expand Down
3 changes: 3 additions & 0 deletions webui/system-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ var SystemInfo = (new function($)
var $SysInfo_FreeDiskSpace;
var $SysInfo_TotalDiskSpace;
var $SysInfo_ArticleCache;
var $SysInfo_WriteBuffer;
var $SysInfo_ToolsTable;
var $SysInfo_LibrariesTable;
var $SysInfo_NewsServersTable;
Expand Down Expand Up @@ -98,6 +99,7 @@ var SystemInfo = (new function($)
$SysInfo_FreeDiskSpace = $('#SysInfo_FreeDiskSpace');
$SysInfo_TotalDiskSpace = $('#SysInfo_TotalDiskSpace');
$SysInfo_ArticleCache = $('#SysInfo_ArticleCache');
$SysInfo_WriteBuffer = $('#SysInfo_WriteBuffer');
$SysInfo_ToolsTable = $('#SysInfo_ToolsTable');
$SysInfo_LibrariesTable = $('#SysInfo_LibrariesTable');
$SysInfo_NewsServersTable = $('#SysInfo_NewsServersTable');
Expand Down Expand Up @@ -207,6 +209,7 @@ var SystemInfo = (new function($)
$SysInfo_Arch.text(sysInfo['CPU'].Arch || 'Unknown');
$SysInfo_ConfPath.text(Options.option('ConfigFile'));
$SysInfo_ArticleCache.text(Util.formatSizeMB(+Options.option('ArticleCache')));
$SysInfo_WriteBuffer.text(Util.formatSizeMB(+Options.option('WriteBuffer')));

renderIP(sysInfo['Network']);
renderAppVersion(Options.option('Version'));
Expand Down

0 comments on commit 97ed968

Please sign in to comment.