Browse Source

Removed div by zero in qslstats if no QSLs sent

master
Fabian Kurz 16 years ago
parent
commit
bd2efac109
  1. 14
      yfksubs.pl

14
yfksubs.pl

@ -5484,8 +5484,18 @@ sub qslstatistics {
$lotwsent += $lotwreceived;
$rate = int(1000 * $received / $sent);
$lotwrate = int (1000* $lotwreceived / $lotwsent);
if ($sent) {
$rate = int(1000 * $received / $sent);
}
else {
$rate = 0;
}
if ($lotwsent) {
$lotwrate = int (1000* $lotwreceived / $lotwsent);
}
else {
$lotwrate = 0;
}
addstr($win, 7, 25, " QSL LOTW");
addstr($win, 8, 25, "--------------------------");

Loading…
Cancel
Save