blam r637 - in trunk: . src
- From: cmartin svn gnome org
- To: svn-commits-list gnome org
- Subject: blam r637 - in trunk: . src
- Date: Sun, 14 Sep 2008 17:35:14 +0000 (UTC)
Author: cmartin
Date: Sun Sep 14 17:35:14 2008
New Revision: 637
URL: http://svn.gnome.org/viewvc/blam?rev=637&view=rev
Log:
Auto-update channels within groups.
Modified:
trunk/ChangeLog
trunk/src/ChannelCollection.cs
Modified: trunk/src/ChannelCollection.cs
==============================================================================
--- trunk/src/ChannelCollection.cs (original)
+++ trunk/src/ChannelCollection.cs Sun Sep 14 17:35:14 2008
@@ -232,6 +232,13 @@
nrOfChannels++;
}
+ foreach(ChannelGroup group in Groups){
+ foreach(Channel channel in group.Channels){
+ QueueChannelRefresh(channel);
+ nrOfChannels++;
+ }
+ }
+
StartRefreshThreads (nrOfChannels);
}
@@ -247,7 +254,17 @@
nrOfChannels++;
}
}
-
+
+ foreach(ChannelGroup group in Groups){
+ foreach(Channel channel in group.Channels){
+ TimeSpan span = DateTime.Now.Subtract(channel.LastRefreshed);
+ if(span.TotalSeconds >= refreshRate * 60){
+ QueueChannelRefresh(channel);
+ nrOfChannels++;
+ }
+ }
+ }
+
StartRefreshThreads (nrOfChannels);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]