summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraristocratos <gnmjpl@gmail.com>2021-05-30 21:15:45 +0200
committeraristocratos <gnmjpl@gmail.com>2021-05-30 21:15:45 +0200
commit657a79a79c694072014d6148b3608c1f09f58a50 (patch)
treeaafa47cf0397e5d8632764f3d3ad3f7efcb608c7
parentfd362b5fefb47288b52492bc8a3c600bac7aa6b2 (diff)
Fixed tzset import
-rwxr-xr-xbpytop.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bpytop.py b/bpytop.py
index 53af186..3e504f8 100755
--- a/bpytop.py
+++ b/bpytop.py
@@ -19,7 +19,7 @@
import os, sys, io, threading, signal, re, subprocess, logging, logging.handlers, argparse
import urllib.request
-from time import time, sleep, strftime
+from time import time, sleep, strftime, tzset
from datetime import timedelta
from _thread import interrupt_main
from collections import defaultdict
@@ -1704,7 +1704,7 @@ class Box:
if not "cpu" in cls.boxes or not cls.clock_on: return
cls.c_counter += 1
if cls.c_counter > 3600 / (Config.update_ms / 1000):
- time.tzset()
+ tzset()
cls.c_counter = 0
out: str = ""
if force: pass