Skip to content

Commit

Permalink
fix reset/cluster on Win
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeTWC1984 committed Apr 20, 2024
1 parent 669051b commit cde3fcb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions bin/manager.bat
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,13 @@ if /I "%1"=="--port" (
echo Missing cluster value. Specify comma-separatd hostnames
exit
)
set CRONICLE_cluster=%~f2
echo These servers will be added on setup: %~f2
set CRONICLE_cluster=%2
echo These servers will be added on setup: %2
shift
shift
) else if /I "%1"=="--reset" (
set CRONICLE_RESET=1
shift
) else if /I "%1"=="--help" (
echo Usage: .\manager [--port port] [ --storage /path/to/storage.json]
echo [ --reset ] # make current host the manager
Expand All @@ -75,6 +76,7 @@ IF EXIST "%~dp0..\nodejs\node.exe" (
REM setup or reset manager
if "%CRONICLE_RESET%"=="1" (
node .\storage-cli.js reset
echo Croncile manager was reset to current host
) else (
node .\storage-cli.js setup
)
Expand Down
2 changes: 1 addition & 1 deletion htdocs/js/pages/Home.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ Class.subclass( Page.Base, "Page.Home", {
var col_width = Math.floor( ((size.width * 0.9) + 50) / 7 );

var cols = ['Event Name', 'Category', 'Plugin', 'Target', 'Scheduled Time', 'Countdown', 'Actions'];
var limit = Math.round(window.innerWidth/350)*5 // try to fit 5 rows
var limit = Math.round((window.innerWidth-200)/350)*4 // try to fit 4 rows

html += this.getPaginatedTable({
resp: {
Expand Down

0 comments on commit cde3fcb

Please sign in to comment.