loklak / loklak_server

Distributed Open Source twitter and social media message search server that anonymously collects, shares, dumps and indexes data http://api.loklak.org
GNU Lesser General Public License v2.1
1.38k stars 222 forks source link

fix upgrade time cannot beyond 24 days #1623

Closed madawei2699 closed 6 years ago

madawei2699 commented 6 years ago

Short description

config upgradeInterval is int type and time unit is ms, the max signed integer in java is 2,147,483,647 wihich max upgradeInterval is 24 days. if you want upgradeInterval is ten years, it cannot config. So I change upgradeInterval unit to hours.

codecov-io commented 6 years ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (development@e36c442). Click here to learn what that means. The diff coverage is 12%.

Impacted file tree graph

@@              Coverage Diff              @@
##             development   #1623   +/-   ##
=============================================
  Coverage               ?   9.76%           
  Complexity             ?     459           
=============================================
  Files                  ?     212           
  Lines                  ?   19451           
  Branches               ?    3579           
=============================================
  Hits                   ?    1899           
  Misses                 ?   17214           
  Partials               ?     338
Impacted Files Coverage Δ Complexity Δ
src/org/loklak/data/MongoDBManager.java 0% <0%> (ø) 0 <0> (?)
src/org/loklak/LoklakServer.java 0% <0%> (ø) 0 <0> (?)
src/org/loklak/harvester/Post.java 31.81% <0%> (ø) 4 <0> (?)
src/org/loklak/data/DAO.java 3.88% <37.5%> (ø) 5 <0> (?)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update e36c442...f78ffbf. Read the comment docs.