• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

[FIX] Total Log Size ??

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
6 posts • Page 1 of 1

Postby AkS » Fri Aug 25, 2006 8:58 pm

where the log control system ?

there is lots of directory and files without any difference besides md5 code .. so this is very difficult to control which channels are used and the organisation system is too complex for my mind ..

moreover the logs seems to not be deleted after a while ... so this is problematic for me and the potential disk space this could take..

actually a " du -ch ./chat/ " return 39Mo after no more than 2 weeks online :/

please help !
AkS
New member
 
Posts: 5
Joined: Thu Aug 10, 2006 3:37 pm
Top

Postby phpfreechat » Sat Aug 26, 2006 9:48 am

Ok, I just checked the "messages" diretories and I found that the old messages are not deleted at all.
This is a bug, could you open a sourceforge bug report about that so I will not forgot ?
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby phpfreechat » Sat Aug 26, 2006 10:32 am

I just fixed the bug, here is the little patch to fix it:
Code: Select all
Modified: trunk/src/containers/file.class.php
===================================================================
--- trunk/src/containers/file.class.php 2006-08-25 19:55:44 UTC (rev 704)
+++ trunk/src/containers/file.class.php 2006-08-26 09:31:12 UTC (rev 705)
@@ -475,6 +475,11 @@

    // write message
    file_put_contents($msg_filename, $data);
+
+    // delete the obsolete message
+    $old_msg_id = $msg_id - $c->max_msg - 20;
+    if ($old_msg_id > 0 && file_exists($msg_dir."/".$old_msg_id))
+      @unlink($msg_dir."/".$old_msg_id);

    return $msg_id;
  }
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby AkS » Mon Aug 28, 2006 9:35 pm

okay !!
nice job men, thanks for your fast reaction.
AkS
New member
 
Posts: 5
Joined: Thu Aug 10, 2006 3:37 pm
Top

Postby echo2me » Wed Sep 06, 2006 6:53 am

when this bug fixed ? 1.0 beta 6 ???
echo2me
Member
 
Posts: 10
Joined: Tue Aug 01, 2006 1:15 pm
Top

Postby phpfreechat » Wed Sep 06, 2006 7:40 am

No, it's fixed in the current 1.0-beta5 release
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top


Post a reply
6 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 13 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub