summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/cloud.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/cloud.module b/modules/cloud.module
index fc3667a..11d9210 100644
--- a/modules/cloud.module
+++ b/modules/cloud.module
@@ -103,9 +103,9 @@ function cloud_list() {
$result = db_query("SELECT * FROM site ORDER BY timestamp DESC LIMIT 100");
while ($site = db_fetch_object($result)) {
- if ($date != date("g A", $site->timestamp)) {
- $date = date("g A", $site->timestamp);
- $output .= "<p /><b>$date:</b>";
+ if ($hour != floor((time() - $site->timestamp) / 3600)) {
+ $hour = floor((time() - $site->timestamp) / 3600);
+ $output .= "<p />Updated ". format_plural($hour, "hour", "hours") ." ago :";
}
$output .= "<br />". format_url($site->url, $site->title);
}