Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Poduptime
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
diasporg
Poduptime
Commits
166fc347
Commit
166fc347
authored
Dec 29, 2018
by
dmorley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for pods that have gone offline recently from go random select
parent
9fa752ef
Pipeline
#937
passed with stage
in 43 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
CHANGELOG.md
CHANGELOG.md
+9
-0
go.php
go.php
+5
-2
No files found.
CHANGELOG.md
View file @
166fc347
...
...
@@ -9,6 +9,15 @@ The format is based on [Keep a Changelog] and this project adheres to [Semantic
### Fixed
### Security
## [2.5.x]
### Added
### Changed
### Deprecated
### Removed
### Fixed
-
go.php will only use online pods
### Security
## [2.5.1] - 2018-12-09
### Changed
-
use file_get_contents less and prefer curl and copy to make things more stable
...
...
go.php
View file @
166fc347
...
...
@@ -9,6 +9,7 @@ declare(strict_types=1);
use
Carbon\Carbon
;
use
Jaybizzle\CrawlerDetect\CrawlerDetect
;
use
RedBeanPHP\R
;
use
Poduptime\PodStatus
;
// Other parameters.
$_domain
=
$_GET
[
'domain'
]
??
''
;
...
...
@@ -30,9 +31,10 @@ try {
AND uptime_alltime > 95
AND monthsmonitored > 1
AND softwarename = ?
AND status = ?
ORDER BY random()
LIMIT 1
'
,
[
$_software
]);
'
,
[
$_software
,
PodStatus
::
UP
]);
$domain
||
die
(
'no domains exist'
);
}
else
{
$click
=
'autoclick'
;
...
...
@@ -43,9 +45,10 @@ try {
AND uptime_alltime > 96
AND monthsmonitored > 2
AND pods.masterversion = shortversion
AND status = ?
ORDER BY random()
LIMIT 1
'
);
'
,
[
PodStatus
::
UP
]
);
$domain
||
die
(
'no domains exist'
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment