pull/10/head
Hunter Long 2018-06-09 21:16:04 -07:00
parent 8f9e96c365
commit ac580cf98d
3 changed files with 15 additions and 2 deletions

View File

@ -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()
}

View File

@ -29,4 +29,13 @@ HTML,BODY {
.offline_bg {
background-color: #c5c5c578 !important;
}
.footer {
text-decoration: none;
margin-top: 20px;
}
.footer A {
color: #cccccc;
}

View File

@ -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');