{"action":"opened","issue":{"url":"https://api.github.com/repos/seikur0/PGO-mapscan-opt/issues/229","repository_url":"https://api.github.com/repos/seikur0/PGO-mapscan-opt","labels_url":"https://api.github.com/repos/seikur0/PGO-mapscan-opt/issues/229/labels{/name}","comments_url":"https://api.github.com/repos/seikur0/PGO-mapscan-opt/issues/229/comments","events_url":"https://api.github.com/repos/seikur0/PGO-mapscan-opt/issues/229/events","html_url":"https://github.com/seikur0/PGO-mapscan-opt/issues/229","id":178519720,"number":229,"title":"Scan interval doesn't work","user":{"login":"cmende","id":631602,"avatar_url":"https://avatars.githubusercontent.com/u/631602?v=3","gravatar_id":"","url":"https://api.github.com/users/cmende","html_url":"https://github.com/cmende","followers_url":"https://api.github.com/users/cmende/followers","following_url":"https://api.github.com/users/cmende/following{/other_user}","gists_url":"https://api.github.com/users/cmende/gists{/gist_id}","starred_url":"https://api.github.com/users/cmende/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmende/subscriptions","organizations_url":"https://api.github.com/users/cmende/orgs","repos_url":"https://api.github.com/users/cmende/repos","events_url":"https://api.github.com/users/cmende/events{/privacy}","received_events_url":"https://api.github.com/users/cmende/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-22T04:30:54Z","updated_at":"2016-09-22T04:30:54Z","closed_at":null,"body":"With a scan interval of 600 I get this:\r\n[+] Scan Time: 436 s\r\n[+] Sleeping for 0 seconds...\r\n\r\nAs far as I can see, this seems to be caused by the fact that the scan time is saved as milliseconds and the interval as seconds, so 436000 > 600 => no sleep.\r\nThis should be fixed by a division by 1000 on line 1472 (haven't tested):\r\n                curT = max(scaninterval - curT, 0)\r\nto\r\n                curT = max(scaninterval - curT/1000, 0)\r\n(or multiply scaninterval by 1000)"}}
{"actor":{"display_login":"cmende"}}