Browse Source

an hour needs to bee an hour

pull/18/head
Jannik 3 years ago
parent
commit
a6bb0a7afe
Signed by: Seil0
GPG Key ID: E8459F3723C52C24
  1. 2
      src/main/kotlin/org/mosad/thecitadelofricks/CacheController.kt
  2. 3
      src/main/kotlin/org/mosad/thecitadelofricks/DataTypes.kt

2
src/main/kotlin/org/mosad/thecitadelofricks/CacheController.kt

@ -163,7 +163,7 @@ class CacheController {
val currentTime = System.currentTimeMillis()
val initDelay24h = (86400000 - ((currentTime + 3600000) % 86400000)) + 60000
val initDelay3h = (10800000 - ((currentTime + 3600000) % 10800000)) + 60000
val initDelay1h = (3600000 - ((currentTime + 3600000) % 10800000)) + 60000
val initDelay1h = (3600000 - ((currentTime + 3600000) % 3600000)) + 60000
println(initDelay1h / 1000)

3
src/main/kotlin/org/mosad/thecitadelofricks/DataTypes.kt

@ -41,8 +41,7 @@ data class MensaWeek(val days: Array<Meals> = Array(7) { Meals(ArrayList()) })
data class MensaMeta(val updateTime: Long, val mensaName: String)
data class MensaMenu(val meta: MensaMeta, val currentWeek: MensaWeek, val nextWeek: MensaWeek) {
}
data class MensaMenu(val meta: MensaMeta, val currentWeek: MensaWeek, val nextWeek: MensaWeek)
// data classes for the timetable part
data class Lesson(

Loading…
Cancel
Save

Du besuchst diese Seite mit einem veralteten IPv4-Internetzugang. Möglicherweise treten in Zukunft Probleme mit der Erreichbarkeit und Performance auf. Bitte frage deinen Internetanbieter oder Netzwerkadministrator nach IPv6-Unterstützung.
You are visiting this site with an outdated IPv4 internet access. You may experience problems with accessibility and performance in the future. Please ask your ISP or network administrator for IPv6 support.
Weitere Infos | More Information
Klicke zum schließen | Click to close