• Post Reply Bookmark Topic Watch Topic
  • New Topic

date/time  RSS feed

 
Miran Cvenkel
Ranch Hand
Posts: 208
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Plan is to delete all files older than 1 month.
It deletes file created seconds ago.
What is that I dont see ?


 
Campbell Ritchie
Marshal
Posts: 56518
172
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Arithmetic overflow. It is in Java Puzzlers by Joshua Bloch and Neal Gafter.
 
Winston Gutkowski
Bartender
Posts: 10575
66
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Miran Cvenkel wrote:What is that I dont see ?

What type are 1000, 60, 24 and 30?

Winston
 
Miran Cvenkel
Ranch Hand
Posts: 208
2
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, (1000L*60L*60L*24L*30L) solves the prob.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!