increased the number of snapshots the server will hold from 1 second to 3

This commit is contained in:
Magnus Auvinen 2009-01-21 00:01:49 +00:00
parent bd1556ce76
commit 30695c09a8

View file

@ -428,8 +428,8 @@ static void server_do_snap()
crc = snapshot_crc((SNAPSHOT*)data); crc = snapshot_crc((SNAPSHOT*)data);
/* remove old snapshos */ /* remove old snapshos */
/* keep 1 seconds worth of snapshots */ /* keep 3 seconds worth of snapshots */
snapstorage_purge_until(&clients[i].snapshots, current_tick-SERVER_TICK_SPEED); snapstorage_purge_until(&clients[i].snapshots, current_tick-SERVER_TICK_SPEED*3);
/* save it the snapshot */ /* save it the snapshot */
snapstorage_add(&clients[i].snapshots, current_tick, time_get(), snapshot_size, data, 0); snapstorage_add(&clients[i].snapshots, current_tick, time_get(), snapshot_size, data, 0);