Fix a potential division by 0 in post GC counter computation (#26085)
Fix a potential division by 0 in post GC counter computation (#26085)

* Fix a potential division by 0 in post GC counter computation

* Remove useless code

cshung/coreclr,cshung/coreclr,poizan42/coreclr,poizan42/coreclr,krk/coreclr,cshung/coreclr,cshung/coreclr,krk/coreclr,poizan42/coreclr,cshung/coreclr,krk/coreclr,poizan42/coreclr,poizan42/coreclr,krk/coreclr,krk/coreclr,krk/coreclr,cshung/coreclr,poizan42/coreclr