Skip to content

Commit

Permalink
fix: speed and ping value convert to double
Browse files Browse the repository at this point in the history
  • Loading branch information
BadApple9 committed Nov 18, 2020
1 parent 53136e5 commit f6b8d7e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions backend/report.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
"ip" => $ipMask,
"isp" => filter_var($_POST['isp'], FILTER_SANITIZE_STRING),
"addr" => filter_var($_POST['addr'], FILTER_SANITIZE_STRING),
"dspeed" => filter_var($_POST['dspeed'], FILTER_SANITIZE_STRING),
"uspeed" => filter_var($_POST['uspeed'], FILTER_SANITIZE_STRING),
"ping" => filter_var($_POST['ping'], FILTER_SANITIZE_STRING),
"jitter" => filter_var($_POST['jitter'], FILTER_SANITIZE_STRING),
"dspeed" => (double) filter_var($_POST['dspeed'], FILTER_SANITIZE_STRING),
"uspeed" => (double) filter_var($_POST['uspeed'], FILTER_SANITIZE_STRING),
"ping" => (double) filter_var($_POST['ping'], FILTER_SANITIZE_STRING),
"jitter" => (double) filter_var($_POST['jitter'], FILTER_SANITIZE_STRING),
"created" => date('Y-m-d H:i:s', time()),
];

Expand Down

0 comments on commit f6b8d7e

Please sign in to comment.