Skip to content

Commit f8198a5

Browse files
committed
Fix displaying number of forks in the last 24 hours
fixed time format (to match format from line 165)
1 parent 6fd2ef9 commit f8198a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Content.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ function createForksContent(){
168168
$content["blocks"][$i]["timeago"] = round((time() - $block["time"])/ (($i === 0) ? 60 : 86400));
169169
$content["blocks"][$i]["txcount"] = count($block["tx"]);
170170

171-
if($content["blocks"][$i]["time"] >= $timeAgo){
171+
if($content["blocks"][$i]["time"] >= getDateTime($timeAgo)){
172172
$content["recentForks"]++;
173173
}
174174
}

0 commit comments

Comments
 (0)