Commit 063aab07 authored by Bernd Buschinski's avatar Bernd Buschinski
Browse files

Fix uptime reporting with 0 minutes

Wrong Output:
"Uptime: 1 hours and  minutes"

Now:
"Uptime: 1 hours and 0 minutes"
parent 3277f11f
...@@ -38,6 +38,8 @@ if($seconds >= 3600) ...@@ -38,6 +38,8 @@ if($seconds >= 3600)
if($seconds > 60) if($seconds > 60)
{ {
$minutes = int($seconds/60); $minutes = int($seconds/60);
} else {
$minutes = 0
} }
if( $days && $hours ) { if( $days && $hours ) {
exec 'qdbus', 'org.kde.konversation', '/irc', 'say', $SERVER, $TARGET, "Uptime: $days days, $hours hours and $minutes minutes"; exec 'qdbus', 'org.kde.konversation', '/irc', 'say', $SERVER, $TARGET, "Uptime: $days days, $hours hours and $minutes minutes";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment