Displaying 11 results from an estimated 11 matches for "this_time".
2015 Jul 24
0
virsh dominfo does not show correct cpuTime
...virt 1.2.8
- qemu-kvm-rhev 2.1.2
----- python script to capture cpu domain usage ----
import libvirt
import time
conn = libvirt.openReadOnly("qemu:///system")
dom = conn.lookupByName('cpu-test')
last_time = time.time()
last_cpu_time = dom.info()[4]
while True:
time.sleep(1)
this_time = time.time()
dom_info = dom.info()
print "CPU time: %s" % dom_info[4]
print "CPU util: %s%%" % ((dom_info[4] - last_cpu_time) / ((this_time -
last_time) * 10000000))
last_cpu_time = dom_info[4]
last_time = this_time
----------------------------- end ----------------...
2015 Jul 24
0
Re: virsh dominfo does not show correct cpuTime
...to capture cpu domain usage ----
> import libvirt
> import time
>
> conn = libvirt.openReadOnly("qemu:///system")
> dom = conn.lookupByName('cpu-test')
> last_time = time.time()
> last_cpu_time = dom.info()[4]
>
> while True:
> time.sleep(1)
> this_time = time.time()
> dom_info = dom.info()
>
> print "CPU time: %s" % dom_info[4]
> print "CPU util: %s%%" % ((dom_info[4] - last_cpu_time) / ((this_time -
> last_time) * 10000000))
>
> last_cpu_time = dom_info[4]
> last_time = this_time
> -------...
2002 Dec 20
1
smbclient and large file support
...if (padit(data, sizeof(data), finfo.size - nread))
DEBUG(0,("Error writing tar file - %s\n", strerror(errno)));
}
@@ -789,8 +791,8 @@
if (tar_noisy)
{
- DEBUG(0, ("%10d (%7.1f kb/s) %s\n",
- (int)finfo.size, finfo.size / MAX(0.001, (1.024*this_time)),
+ DEBUG(0, ("%12.0f (%7.1f kb/s) %s\n",
+ (double)finfo.size, finfo.size / MAX(0.001, (1.024*this_time)),
finfo.name));
}
@@ -1868,7 +1870,7 @@
if (tar_type=='c' && (dry_run || strcmp(argv[Optind], "/dev/null")==0))
{...
2014 Aug 31
0
Bug#444000: [ijc@hellion.org.uk: move core dumps to /var/lib/xen/dump]
...mkdir.parents(coredir, stat.S_IRWXU)
+@@ -2292,7 +2292,7 @@
+
+ if not os.path.isdir(coredir):
+ # Use former directory to dump core
+- coredir = '/var/xen/dump'
++ coredir = '/var/lib/xen/dump/'
+
+ this_time = time.strftime("%Y-%m%d-%H%M.%S", time.localtime())
+ corefile = "%s/%s-%s.%s.core" % (coredir, this_time,
diff --git a/xen/debian/xen-utils-common.dirs b/xen/debian/xen-utils-common.dirs
index c745c08..a598c47 100644
--- a/xen/debian/xen-utils-common.dirs
+++ b/xen...
2013 Aug 16
2
Bug#706233: move core dumps to /var/lib/xen/dump
...mkdir.parents(coredir, stat.S_IRWXU)
+@@ -2292,7 +2292,7 @@
+
+ if not os.path.isdir(coredir):
+ # Use former directory to dump core
+- coredir = '/var/xen/dump'
++ coredir = '/var/lib/xen/dump/'
+
+ this_time = time.strftime("%Y-%m%d-%H%M.%S", time.localtime())
+ corefile = "%s/%s-%s.%s.core" % (coredir, this_time,
diff --git a/xen/debian/xen-utils-common.dirs b/xen/debian/xen-utils-common.dirs
index c745c08..a598c47 100644
--- a/xen/debian/xen-utils-common.dirs
+++ b/xen...
2006 Jun 13
17
reconstituting a date
In my view code, I have <%= datetime_select "in_out", "time_in" %>
which returns in params
:in_out: !map:HashWithIndifferentAccess
time_in(1i): "2006"
time_in(2i): "6"
time_in(3i): "12"
time_in(4i): "20"
time_in(5i): "24"
and I want to save that datetime to a column in the db...
if
2023 Mar 27
1
[Bridge] [PATCH v2 net-next 2/6] net: dsa: propagate flags down towards drivers
...igned-off-by: Hans J. Schultz <netdev at kapio-technology.com>
diff --git a/net/bridge/br_fdb.c b/net/bridge/br_fdb.c
index e69a872bfc1d..b0c23a72bc76 100644
--- a/net/bridge/br_fdb.c
+++ b/net/bridge/br_fdb.c
@@ -537,6 +537,7 @@ void br_fdb_cleanup(struct work_struct *work)
unsigned long this_timer = f->updated + delay;
if (test_bit(BR_FDB_STATIC, &f->flags) ||
+ test_bit(BR_FDB_OFFLOADED, &f->flags) ||
test_bit(BR_FDB_ADDED_BY_EXT_LEARN, &f->flags)) {
if (test_bit(BR_FDB_NOTIFY, &f->flags)) {
if (time_after(this_timer, now))
@@ -1465,...
2023 Mar 27
1
[Bridge] [PATCH v2 net-next 2/6] net: dsa: propagate flags down towards drivers
On Mon, Mar 27, 2023 at 14:52, Vladimir Oltean <olteanv at gmail.com> wrote:
>
> By the way, there is a behavior change here.
>
> Before:
>
> $ ip link add br0 type bridge && ip link set br0 up
> $ ip link set swp0 master br0 && ip link set swp0 up
> $ bridge fdb add dev swp0 00:01:02:03:04:05 master dynamic
> [ 70.010181] mscc_felix 0000:00:00.5:
1999 Apr 08
0
Keep-timestamp-in-`get'-patch for smbclient in samba-2.0.3
...tb.modtime == (time_t)-1)
+ ;
+ else {
+ if (utb.actime == (time_t)0 || utb.actime == (time_t)-1)
+ utb.actime = utb.modtime;
+ utime(lname, &utb);
+ }
+ }
}
if (archive_level >= 2 && (attr & aARCH)) {
@@ -555,7 +623,7 @@
get_total_time_ms += this_time;
get_total_size += nread;
- DEBUG(2,("(%g kb/s) (average %g kb/s)\n",
+ DEBUG(0,("(%g kb/s) (average %g kb/s)\n",
nread / (1.024*this_time + 1.0e-4),
get_total_size / (1.024*get_total_time_ms)));
}
@@ -1230,6 +1298,16 @@
/*******************************...
2003 Dec 01
0
No subject
...;
+ }
+
+ if (newhandle) {
+ close(handle);
+ }
+
+ if (archive_level >= 2 && (attr & aARCH)) {
+ cli_setatr(cli, rname, attr & ~(uint16)aARCH, 0);
+ }
+
+ {
+ struct timeval tp_end;
+ int this_time;
+
+ GetTimeOfDay(&tp_end);
+ this_time =
+ (tp_end.tv_sec - tp_start.tv_sec)*1000 +
+ (tp_end.tv_usec - tp_start.tv_usec)/1000;
+ get_total_time_ms += this_time;
+ get_total_size...
2003 Dec 01
0
No subject
...e(cli, fnum)) {
+ DEBUG(0,("Error %s closing remote file\n",cli_errstr(cli)));
+ }
+
+ if (newhandle) {
+ close(handle);
+ }
+
+ if (archive_level >= 2 && (attr & aARCH)) {
+ cli_setatr(cli, rname, attr & ~(uint16)aARCH, 0);
+ }
+
+ {
+ struct timeval tp_end;
+ int this_time;
+
+ GetTimeOfDay(&tp_end);
+ this_time =
+ (tp_end.tv_sec - tp_start.tv_sec)*1000 +
+ (tp_end.tv_usec - tp_start.tv_usec)/1000;
+ get_total_time_ms += this_time;
+ get_total_size += nread;
+
+ DEBUG(2,("(%g kb/s) (average %g kb/s)\n",
+ nread / (1.024*this_time + 1.0...