]> granicus.if.org Git - ejabberd/commitdiff
Fix a typo
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Fri, 14 Apr 2017 17:40:39 +0000 (20:40 +0300)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Fri, 14 Apr 2017 17:40:39 +0000 (20:40 +0300)
src/ejabberd_sm_sql.erl

index 3fda1f5e522604bc22df23b4a4e24e7f8b5c1403..4e435c4e318de9c98e5a2e7d3ef5fc8524493336 100644 (file)
@@ -148,7 +148,7 @@ timestamp_to_now(I) ->
     Head = I div 1000000,
     USec = I rem 1000000,
     MSec = Head div 1000000,
-    Sec = Head div 1000000,
+    Sec = Head rem 1000000,
     {MSec, Sec, USec}.
 
 dec_priority(Prio) ->