mirror of https://github.com/statping/statping
changes
parent
8f9e96c365
commit
ac580cf98d
|
@ -17,9 +17,9 @@ func CheckServices() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Service) CheckQueue() {
|
func (s *Service) CheckQueue() {
|
||||||
time.Sleep(time.Duration(s.Interval) * time.Second)
|
|
||||||
s.Check()
|
s.Check()
|
||||||
fmt.Printf(" Service: %v | Online: %v | Latency: %v\n", s.Name, s.Online, s.Latency)
|
fmt.Printf(" Service: %v | Online: %v | Latency: %v\n", s.Name, s.Online, s.Latency)
|
||||||
|
time.Sleep(time.Duration(s.Interval) * time.Second)
|
||||||
s.CheckQueue()
|
s.CheckQueue()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,3 +30,12 @@ HTML,BODY {
|
||||||
.offline_bg {
|
.offline_bg {
|
||||||
background-color: #c5c5c578 !important;
|
background-color: #c5c5c578 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.footer {
|
||||||
|
text-decoration: none;
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer A {
|
||||||
|
color: #cccccc;
|
||||||
|
}
|
|
@ -52,6 +52,10 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="footer text-center">
|
||||||
|
<a href="https://statup.io" target="_blank">Statup.io Opensource Status Page</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
{{ range .Services }}
|
{{ range .Services }}
|
||||||
var ctx = document.getElementById("service_{{.Id}}").getContext('2d');
|
var ctx = document.getElementById("service_{{.Id}}").getContext('2d');
|
||||||
|
|
Loading…
Reference in New Issue