summaryrefslogtreecommitdiff
path: root/lstwitch.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lstwitch.rb')
-rwxr-xr-xlstwitch.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lstwitch.rb b/lstwitch.rb
index f3194db..be71fc0 100755
--- a/lstwitch.rb
+++ b/lstwitch.rb
@@ -21,6 +21,10 @@ total = 1
width = `stty size`.split[1].to_i
+if width < 97
+ width=97
+end
+
while offset < total
response = JSON.parse(http.request(Net::HTTP::Get.new("/kraken/streams/?offset=#{offset}#{game}")).body)