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