home · contact · privacy
Server: Fix bug in savefile write delay calculation.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 2 Mar 2016 01:42:22 +0000 (02:42 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 2 Mar 2016 01:42:22 +0000 (02:42 +0100)
server/io.py

index 01d04365770ace851b97568ea7f0c22cd19dc451..a483e2d4e313bdd91ddd25f08aa7f700e9e55376 100644 (file)
@@ -288,7 +288,7 @@ def obey(command, prefix, replay=False, do_record=False):
                     if world_db["WORLD_ACTIVE"]:
                         save_world()
                     io_db["record_chunk"] = ""
-                    io_db["save_wait"] = time.time()
+                    io_db["save_wait_start"] = time.time()
             io_db["worldstate_updateable"] = world_db["WORLD_ACTIVE"]
     elif 0 != len(tokens):
         print("Invalid command/argument, or bad number of tokens: " + command)