MMM-pihole-stats icon indicating copy to clipboard operation
MMM-pihole-stats copied to clipboard

only 1 domain blacklist is displayed

Open schlagucke opened this issue 3 years ago • 5 comments

Hello, I have the following error.

Only 1 domain blacklist is displayed. Although several are used.

I use pi-hole 5.9 and the latest version of MagicMirror and MMM-pihole.

Thanks a lot.

087F0044-6635-4870-BA79-B35D5859CFB8 3DB59E2A-EF60-49CF-A123-57569BCC9479 1B28CEA5-7B26-495C-8282-01E9043CD711

schlagucke avatar Feb 14 '22 11:02 schlagucke

I guess I have a different question. I just noticed my own instance (first time user of this plug-in) is showing the equivalent of "32 ads" and "61 DNS queries" where it should say "32,000 ads" and "61,000 DNS queries" Have I overlooked something here?

Thanks, sorry for the digression.

zinjacoder avatar Feb 20 '22 19:02 zinjacoder

Hi @zinjacoder I've been unable to reproduce this issue. Can you please post your results from <pihole>/admin/api.php?

sheyabernstein avatar Feb 20 '22 22:02 sheyabernstein

Found the issue. I reverted all formatInt back to formatFloat, and everything is showed up in the mirror correctly, again. Maybe you have to review that again.

barnosch avatar Feb 22 '22 17:02 barnosch

Thank you for your work and effort. It worked.

schlagucke avatar Feb 22 '22 17:02 schlagucke

Hey @barnosch would you be able to submit a PR?

sheyabernstein avatar Feb 22 '22 18:02 sheyabernstein