Moved the time interval calculation for the scanner heartbeat into its own function.
Moved the time interval calculation for the scanner heartbeat into its own function.

ajayaa/cockroach,jamesgraves/cockroach,petermattis/cockroach,jgautheron/cockroach,fengshao0907/cockroach,maxlang/cockroach,marcuswestin/cockroach,bg451/cockroach,ajayaa/cockroach,vaibhavarora/cockroach,slavau/cockroach,alex/cockroach,linearb/cockroach,sunya123/cockroach,hassyma/cockroach,iqstack/cockroach,Abioy/cockroach,arjun4084346/cockroach,vivekmenezes/cockroach,cuongdo/cockroach,cockroachdb/cockroach,es-chow/cockroach,vaibhavarora/cockroach,freakynit/cockroach,c4pt0r/cockroach,cuongdo/cockroach,alunarbeach/cockroach,jess-edwards/cockroach,ajayaa/cockroach,nieyy/cockroach,Abioy/cockroach,arjun4084346/cockroach,vaibhavarora/cockroach,jamesgraves/cockroach,sunya123/cockroach,vaibhavarora/cockroach,abhishekgahlot/cockroach,cuongdo/cockroach,ajayaa/cockroach,petermattis/cockroach,ngaut/cockroach,freakynit/cockroach,XisiHuang/cockroach,vivekmenezes/cockroach,SustainFund/cockroach,hassyma/cockroach,SustainFund/cockroach,yiixiansheng/cockroach,paperstreet/cockroach,XisiHuang/cockroach,marcuswestin/cockroach,mbonaci/cockroach,domluna/cockroach,cuongdo/cockroach,mbertschler/cockroach,arypurnomoz/cockroach,linearb/cockroach,arjun4084346/cockroach,iqstack/cockroach,alex/cockroach,XisiHuang/cockroach,nieyy/cockroach,XisiHuang/cockroach,veteranlu/cockroach,chrisseto/cockroach,cockroachdb/cockroach,yananzhi/cockroach,loucash/cockroach,freakynit/cockroach,domluna/cockroach,veteranlu/cockroach,cuongdo/cockroach,jamesgraves/cockroach,bg451/cockroach,petermattis/cockroach,c4pt0r/cockroach,veteranlu/cockroach,yosiat/cockroach,alex/cockroach,arjun4084346/cockroach,jmank88/cockroach,abhishekgahlot/cockroach,loucash/cockroach,slavau/cockroach,paperstreet/cockroach,sunya123/cockroach,nieyy/cockroach,glycerine/cockroach,iqstack/cockroach,nieyy/cockroach,jamesgraves/cockroach,XisiHuang/cockroach,yananzhi/cockroach,jess-edwards/cockroach,nkhuyu/cockroach,vivekmenezes/cockroach,arjun4084346/cockroach,glycerine/cockroach,veteranlu/cockroach,jamesgraves/cockroach,linearb/cockroach,glycerine/cockroach,ngaut/cockroach,veteranlu/cockroach,vivekmenezes/cockroach,glycerine/cockroach,mbertschler/cockroach,jgautheron/cockroach,cockroachdb/cockroach,ngaut/cockroach,iqstack/cockroach,c4pt0r/cockroach,paperstreet/cockroach,paperstreet/cockroach,arypurnomoz/cockroach,il9ue/cockroach,nkhuyu/cockroach,bg451/cockroach,briceburg/cockroach,glycerine/cockroach,iqstack/cockroach,nieyy/cockroach,linearb/cockroach,chrisseto/cockroach,mbertschler/cockroach,cockroachdb/cockroach,briceburg/cockroach,il9ue/cockroach,briceburg/cockroach,chrisseto/cockroach,petermattis/cockroach,glycerine/cockroach,jmank88/cockroach,iqstack/cockroach,cockroachdb/cockroach,petermattis/cockroach,sunya123/cockroach,yananzhi/cockroach,il9ue/cockroach,yananzhi/cockroach,cuongdo/cockroach,es-chow/cockroach,abhishekgahlot/cockroach,paperstreet/cockroach,alunarbeach/cockroach,il9ue/cockroach,bg451/cockroach,nkhuyu/cockroach,es-chow/cockroach,alunarbeach/cockroach,maxlang/cockroach,petermattis/cockroach,arypurnomoz/cockroach,GokulSrinivas/cockroach,hassyma/cockroach,arypurnomoz/cockroach,cockroachdb/cockroach,vivekmenezes/cockroach,sunya123/cockroach,glycerine/cockroach,mbertschler/cockroach,c4pt0r/cockroach,jgautheron/cockroach,vivekmenezes/cockroach,jamesgraves/cockroach,jamesgraves/cockroach,cockroachdb/cockroach,Abioy/cockroach,marcuswestin/cockroach,abhishekgahlot/cockroach,domluna/cockroach,mbertschler/cockroach,sunya123/cockroach,ngaut/cockroach,hassyma/cockroach,jess-edwards/cockroach,Abioy/cockroach,es-chow/cockroach,Abioy/cockroach,ngaut/cockroach,bg451/cockroach,sunya123/cockroach,c4pt0r/cockroach,il9ue/cockroach,cuongdo/cockroach,abhishekgahlot/cockroach,arypurnomoz/cockroach,yananzhi/cockroach,cockroachdb/cockroach,jmank88/cockroach,yiixiansheng/cockroach,jess-edwards/cockroach,linearb/cockroach,nkhuyu/cockroach,yosiat/cockroach,GokulSrinivas/cockroach,veteranlu/cockroach,vaibhavarora/cockroach,petermattis/cockroach,domluna/cockroach,paperstreet/cockroach,fengshao0907/cockroach,domluna/cockroach,glycerine/cockroach,vaibhavarora/cockroach,alex/cockroach,alunarbeach/cockroach,mbonaci/cockroach,freakynit/cockroach,vaibhavarora/cockroach,arypurnomoz/cockroach,il9ue/cockroach,fengshao0907/cockroach,nieyy/cockroach,il9ue/cockroach,jess-edwards/cockroach,ngaut/cockroach,GokulSrinivas/cockroach,loucash/cockroach,SustainFund/cockroach,maxlang/cockroach,briceburg/cockroach,chrisseto/cockroach,briceburg/cockroach,yiixiansheng/cockroach,SustainFund/cockroach,ajayaa/cockroach,il9ue/cockroach,fengshao0907/cockroach,jgautheron/cockroach,GokulSrinivas/cockroach,yananzhi/cockroach,loucash/cockroach,domluna/cockroach,maxlang/cockroach,linearb/cockroach,sunya123/cockroach,briceburg/cockroach,slavau/cockroach,bg451/cockroach,GokulSrinivas/cockroach,SustainFund/cockroach,yananzhi/cockroach,jmank88/cockroach,es-chow/cockroach,jgautheron/cockroach,loucash/cockroach,veteranlu/cockroach,arjun4084346/cockroach,c4pt0r/cockroach,slavau/cockroach,veteranlu/cockroach,alunarbeach/cockroach,iqstack/cockroach,marcuswestin/cockroach,yosiat/cockroach,marcuswestin/cockroach,alunarbeach/cockroach,bg451/cockroach,paperstreet/cockroach,yosiat/cockroach,ajayaa/cockroach,freakynit/cockroach,nieyy/cockroach,vivekmenezes/cockroach,slavau/cockroach,maxlang/cockroach,domluna/cockroach,jmank88/cockroach,vivekmenezes/cockroach,yosiat/cockroach,fengshao0907/cockroach,marcuswestin/cockroach,chrisseto/cockroach,freakynit/cockroach,nkhuyu/cockroach,hassyma/cockroach,jgautheron/cockroach,yosiat/cockroach,es-chow/cockroach,yiixiansheng/cockroach,GokulSrinivas/cockroach,alex/cockroach,nieyy/cockroach,marcuswestin/cockroach,mbonaci/cockroach,hassyma/cockroach,jess-edwards/cockroach,linearb/cockroach,chrisseto/cockroach,maxlang/cockroach,cuongdo/cockroach,mbonaci/cockroach,mbonaci/cockroach,SustainFund/cockroach,abhishekgahlot/cockroach,paperstreet/cockroach,mbertschler/cockroach,marcuswestin/cockroach,petermattis/cockroach,es-chow/cockroach,maxlang/cockroach,yiixiansheng/cockroach,XisiHuang/cockroach,yiixiansheng/cockroach,Abioy/cockroach,nkhuyu/cockroach,mbonaci/cockroach,alex/cockroach,fengshao0907/cockroach,jess-edwards/cockroach,jmank88/cockroach,arjun4084346/cockroach,arjun4084346/cockroach,ngaut/cockroach,jmank88/cockroach,maxlang/cockroach,vaibhavarora/cockroach,mbertschler/cockroach,slavau/cockroach,loucash/cockroach