lars@lemmy.sdf.org to Memes@lemmy.ml · 11 months agoHas anyone notified Elon?lemmy.sdf.orgimagemessage-square26fedilinkarrow-up10arrow-down10
arrow-up10arrow-down1imageHas anyone notified Elon?lemmy.sdf.orglars@lemmy.sdf.org to Memes@lemmy.ml · 11 months agomessage-square26fedilink
minus-squarelobelia581@lemmy.dbzer0.comlinkfedilinkEnglisharrow-up0·edit-211 months ago// TODO: needs improvements but works 99% of the time return false;
minus-squareifGoingToCrashDont@lemmy.worldlinkfedilinkarrow-up0·11 months agoThis looks good. PR approved.
minus-squareScubus@sh.itjust.workslinkfedilinkarrow-up0·11 months agoTo improve that, you could get rid of the comment to save space.
minus-squareApeNo1@lemm.eelinkfedilinkEnglisharrow-up0·11 months agoreturn (staticCrashCounter++ % 100 == 0 ? true : false);
// TODO: needs improvements but works 99% of the time
return false;
This looks good. PR approved.
To improve that, you could get rid of the comment to save space.
return (staticCrashCounter++ % 100 == 0 ? true : false);