Ticket #35795

指し手の消費時間が-1 秒と記録される

Date d'ouverture: 2015-11-27 23:13 Dernière mise à jour: 2015-12-12 13:13

Rapporteur:
Propriétaire:
Type:
État:
Atteints
Composant:
(Aucun)
Jalon:
(Aucun)
Priorité:
5 - moyen
Sévérité:
5 - moyen
Résolution:
Aucun
Fichier:
Aucun

Détails

[END]
-4232OU,T0
  elapsed: b0, w12
    move     freq
  * 6978KI  100.0
- opening book is probed. ( 0.00s)
- now sending the message: +6978KI
Black 25> 6978KI '(0) 000:01/000:01  elapsed: b1, w12
White 26> wait for a message ... done.
+6978KI,T-1
[END]
+6978KI,T-1

Ticket History (3/3 Histories)

2015-11-27 23:13 Updated by: beatles
  • New Ticket "指し手の消費時間が-1 秒と記録される" created
2015-11-27 23:23 Updated by: beatles
  • Details Updated
  • Propriétaire Update from (Aucun) to beatles
Commentaire
  • 指し手の開始時刻は、手番となるplayerへの指し手の送信後に(giant lockの最後のほうで)記録される。
  • 指し手の終了時刻は、shogi-serverが指し手を受信した直後、giant lockの前で記録される。

そのため、playerが即座に指し手を返すしたとき、消費時間が負数になりうる。また、小数点以下を切り捨てるためにfloorを用いているが、負数に対しては、-0.1.floor => -1 となるため、指し手の消費時間が-1 秒と記録されたと考えられる。

2015-12-12 13:13 Updated by: beatles
  • État Update from Ouvert to Atteints
  • Ticket Close date is changed to 2015-12-12 13:13
Commentaire

Fixed at 3d228b20abc8b692cc42cc3d5c57686269de2279

Attachment File List

No attachments

Modifier

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Connexion