check if Variable is set, CID 60865
add KEEN_PROJECT_ID of buildtimetrend
add KEEN_WRITE_KEY of buildtimetrend
cast each term seperately to avoid integer division, CID 60868
Merge branch 'master' into coverity_scan